pub struct ExprIfType {
pub id: NodeId,
pub pos: Position,
pub span: Span,
pub cond: Box<Expr>,
pub then_block: Box<Expr>,
pub else_block: Option<Box<Expr>>,
}
Fields§
§id: NodeId
§pos: Position
§span: Span
§cond: Box<Expr>
§then_block: Box<Expr>
§else_block: Option<Box<Expr>>
Trait Implementations§
Source§impl Clone for ExprIfType
impl Clone for ExprIfType
Source§fn clone(&self) -> ExprIfType
fn clone(&self) -> ExprIfType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ExprIfType
impl RefUnwindSafe for ExprIfType
impl Send for ExprIfType
impl Sync for ExprIfType
impl Unpin for ExprIfType
impl UnwindSafe for ExprIfType
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