pub struct SharedCfgBuilder { /* private fields */ }Expand description
Builder for SharedCfg.
Implementations§
Sourcepub fn add<T: Configuration>(self, val: T) -> Self
pub fn add<T: Configuration>(self, val: T) -> Self
Inserts a typed value into this configuration.
Replaces the existing value when the same type was already inserted.
Trait Implementations§
Source§fn from(cfg: SharedCfgBuilder) -> Self
fn from(cfg: SharedCfgBuilder) -> Self
Converts to this type from the input type.
Source§fn from(cfg: SharedCfgBuilder) -> SharedCfg
fn from(cfg: SharedCfgBuilder) -> SharedCfg
Converts to this type from the input type.
Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more