pub struct IfDef { /* private fields */ }Expand description
defines a comment block
Implementations§
Source§impl IfDef
impl IfDef
Sourcepub fn then_scope(&mut self) -> &mut Scope
pub fn then_scope(&mut self) -> &mut Scope
obtains the scope to the then block
Sourcepub fn other_scope(&mut self) -> &mut Scope
pub fn other_scope(&mut self) -> &mut Scope
obtains the scope to the other block
pub fn guard(&mut self) -> &mut Self
pub fn do_fmt(&self, fmt: &mut Formatter<'_>, only_decls: bool) -> Result
pub fn fmt(&self, fmt: &mut Formatter<'_>) -> Result
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IfDef
impl RefUnwindSafe for IfDef
impl Send for IfDef
impl Sync for IfDef
impl Unpin for IfDef
impl UnwindSafe for IfDef
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