pub enum BlockItemMut<'a> {
StatementOrDeclaration(&'a mut StatementOrDeclaration),
SingleStatement(&'a mut Statement),
}
Expand description
Wrapper type for StatementOrDeclaration
. Needed because crate::Statement
doesn’t
come under StatementOrDeclaration
in the case of crate::BlockOrSingleStatement
Variants§
StatementOrDeclaration(&'a mut StatementOrDeclaration)
SingleStatement(&'a mut Statement)
Trait Implementations§
Source§impl<'a> From<&'a mut Statement> for BlockItemMut<'a>
impl<'a> From<&'a mut Statement> for BlockItemMut<'a>
Source§impl<'a> From<&'a mut StatementOrDeclaration> for BlockItemMut<'a>
impl<'a> From<&'a mut StatementOrDeclaration> for BlockItemMut<'a>
Source§fn from(item: &'a mut StatementOrDeclaration) -> Self
fn from(item: &'a mut StatementOrDeclaration) -> Self
Converts to this type from the input type.
impl SelfVisitableMut for BlockItemMut<'_>
Auto Trait Implementations§
impl<'a> Freeze for BlockItemMut<'a>
impl<'a> RefUnwindSafe for BlockItemMut<'a>
impl<'a> Send for BlockItemMut<'a>
impl<'a> Sync for BlockItemMut<'a>
impl<'a> Unpin for BlockItemMut<'a>
impl<'a> !UnwindSafe for BlockItemMut<'a>
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