pub struct IfLetNode {
pub binding: Ident,
pub value: Expr,
pub then: Vec<Node>,
pub otherwise: Option<Vec<Node>>,
pub span: Span,
}Expand description
if let Some(name) = expr { … } else { … }
Fields§
§binding: Ident§value: Expr§then: Vec<Node>§otherwise: Option<Vec<Node>>§span: SpanTrait Implementations§
Auto Trait Implementations§
impl !Send for IfLetNode
impl !Sync for IfLetNode
impl Freeze for IfLetNode
impl RefUnwindSafe for IfLetNode
impl Unpin for IfLetNode
impl UnsafeUnpin for IfLetNode
impl UnwindSafe for IfLetNode
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