pub struct CfgCond { /* private fields */ }
Expand description
List of conditional compilation clauses.
Implementations§
Source§impl CfgCond
impl CfgCond
Sourcepub fn add_clause(&mut self, rhs: &Self)
pub fn add_clause(&mut self, rhs: &Self)
Sourcepub fn attrs(&self) -> TokenStream
pub fn attrs(&self) -> TokenStream
Returns a TokenStream
for conditional compilation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CfgCond
impl RefUnwindSafe for CfgCond
impl !Send for CfgCond
impl !Sync for CfgCond
impl Unpin for CfgCond
impl UnwindSafe for CfgCond
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