Trait dioxus::prelude::TryIntoConfig
source · pub trait TryIntoConfig<Config = Self> {
// Required method
fn into_config(self) -> Option<Config>;
}
Available on crate feature
launch
only.Expand description
A trait for converting a type into a platform-specific config:
- A unit value will be converted into
None
- Any config will be converted into
Some(config)
- If the config is for another platform, it will be converted into
None