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 Freeze for IfLetAlternative
impl RefUnwindSafe for IfLetAlternative
impl Send for IfLetAlternative
impl Sync for IfLetAlternative
impl Unpin for IfLetAlternative
impl UnsafeUnpin for IfLetAlternative
impl UnwindSafe for IfLetAlternative
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