Skip to content

Check if a plugin was added #16153

Answered by BD103
simbleau asked this question in Q&A
Discussion options

You must be logged in to vote

App::is_plugin_added() should be what you're looking for!

let mut app = App::new();
app.add_plugins(MyPlugin);
assert!(app.is_plugin_added::<MyPlugin>());

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by simbleau
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants