pub fn initialize(from: &[String]) -> Result<()> {
    FEATURE_FLAGS
        .get_or_try_init(|| {
            from.iter().try_fold(FeatureFlags::default(), |mut acc, flag| {
                acc.add_flag(&flag)?;
                Ok(acc)
            })
        })
        .map(|_| ())
}
/// Initializes the feature flags with given flags.
/// Noop if already initialized.
Initializes the feature flags with given flags.
Noop if already initialized.
Initializes the feature flags with given flags . Noop if already initialized .
pub fn initialize(from: &[String]) -> Result<()> {
    FEATURE_FLAGS
        .get_or_try_init(|| {
            from.iter().try_fold(FeatureFlags::default(), |mut acc, flag| {
                acc.add_flag(&flag)?;
                Ok(acc)
            })
        })
        .map(|_| ())
}
pub fn initialize ( from : & [ String ] ) -> Result < ( ) > { FEATURE_FLAGS . get_or_try_init ( | | { from . iter ( ) . try_fold ( FeatureFlags :: default ( ) , | mut acc , flag | { acc . add_flag ( & flag ) ? ; Ok ( acc ) } ) } ) . map ( | _ | ( ) ) }
Initializes the feature flags with given flags.
Initializes the feature flags with given flags .
from
&[String]
from
&[String]