pub enum IfLetAlternative {
Absent,
Present {
expression: Box<Expression>,
else_span: Span,
},
}Variants§
Implementations§
Source§impl IfLetAlternative
impl IfLetAlternative
pub fn expression(&self) -> Option<&Expression>
pub fn expression_mut(&mut self) -> Option<&mut Expression>
pub fn else_span(&self) -> Option<Span>
Trait Implementations§
Source§impl Clone for IfLetAlternative
impl Clone for IfLetAlternative
Source§impl Debug for IfLetAlternative
impl Debug for IfLetAlternative
Source§impl PartialEq for IfLetAlternative
impl PartialEq for IfLetAlternative
impl StructuralPartialEq for IfLetAlternative
Auto Trait Implementations§
impl Forget for IfLetAlternative
impl Freeze for IfLetAlternative
impl Move for IfLetAlternative
impl RefUnwindSafe for IfLetAlternative
impl Send for IfLetAlternativewhere
BoxRaw<Expression>: Send,
impl Sync for IfLetAlternativewhere
BoxRaw<Expression>: Sync,
impl Unpin for IfLetAlternative
impl UnsafeUnpin for IfLetAlternative
impl UnwindSafe for IfLetAlternativewhere
BoxRaw<Expression>: 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