foundry_config::providers::ext

Trait ProviderExt

Source
pub(crate) trait ProviderExt: Provider + Sized {
    // Provided methods
    fn rename(
        self,
        from: impl Into<Profile>,
        to: impl Into<Profile>,
    ) -> RenameProfileProvider<Self> { ... }
    fn wrap(
        self,
        wrapping_key: impl Into<Profile>,
        profile: impl Into<Profile>,
    ) -> WrapProfileProvider<Self> { ... }
    fn strict_select(
        self,
        profiles: impl IntoIterator<Item = impl Into<Profile>>,
    ) -> OptionalStrictProfileProvider<Self> { ... }
    fn fallback(
        self,
        profile: impl Into<Profile>,
        fallback: impl Into<Profile>,
    ) -> FallbackProfileProvider<Self> { ... }
}

Provided Methods§

Source

fn rename( self, from: impl Into<Profile>, to: impl Into<Profile>, ) -> RenameProfileProvider<Self>

Source

fn wrap( self, wrapping_key: impl Into<Profile>, profile: impl Into<Profile>, ) -> WrapProfileProvider<Self>

Source

fn strict_select( self, profiles: impl IntoIterator<Item = impl Into<Profile>>, ) -> OptionalStrictProfileProvider<Self>

Source

fn fallback( self, profile: impl Into<Profile>, fallback: impl Into<Profile>, ) -> FallbackProfileProvider<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<P: Provider> ProviderExt for P