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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)