pub struct Cfg<T>(/* private fields */)
where
T: Configuration;Expand description
A typed handle to a value in a SharedCfg.
Implementations§
Source§impl<T> Cfg<T>where
T: Configuration,
impl<T> Cfg<T>where
T: Configuration,
Returns a handle to the complete shared configuration.
Returns another typed value from the same shared configuration.
Trait Implementations§
Source§impl<T> Clone for Cfg<T>where
T: Configuration,
impl<T> Clone for Cfg<T>where
T: Configuration,
Source§impl<T> Default for Cfg<T>where
T: Configuration,
impl<T> Default for Cfg<T>where
T: Configuration,
Source§impl<T> Deref for Cfg<T>where
T: Configuration,
impl<T> Deref for Cfg<T>where
T: Configuration,
Source§impl<T> Drop for Cfg<T>where
T: Configuration,
impl<T> Drop for Cfg<T>where
T: Configuration,
Source§fn from(cfg: SharedCfgBuilder) -> Cfg<T>
fn from(cfg: SharedCfgBuilder) -> Cfg<T>
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> !Freeze for Cfg<T>
impl<T> !RefUnwindSafe for Cfg<T>
impl<T> !Send for Cfg<T>
impl<T> !Sync for Cfg<T>
impl<T> Unpin for Cfg<T>
impl<T> UnsafeUnpin for Cfg<T>
impl<T> UnwindSafe for Cfg<T>where
T: RefUnwindSafe,
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