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

Required Methods§

source

fn into_config(self) -> Option<Config>

Implementors§

source§

impl<Cfg> TryIntoConfig for Cfg