pub struct Cfg<Cond>(pub Cond);Expand description
A cfg attribute. Renders as cfg(Cond).
Tuple Fields§
§0: CondTrait Implementations§
Auto Trait Implementations§
impl<Cond> Freeze for Cfg<Cond>where
Cond: Freeze,
impl<Cond> RefUnwindSafe for Cfg<Cond>where
Cond: RefUnwindSafe,
impl<Cond> Send for Cfg<Cond>where
Cond: Send,
impl<Cond> Sync for Cfg<Cond>where
Cond: Sync,
impl<Cond> Unpin for Cfg<Cond>where
Cond: Unpin,
impl<Cond> UnwindSafe for Cfg<Cond>where
Cond: UnwindSafe,
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