pub struct IfStmt {
pub condition: Expr,
pub then_block: Block,
pub else_branch: Option<ElseBranch>,
pub span: Span,
}Fields§
§condition: Expr§then_block: Block§else_branch: Option<ElseBranch>§span: SpanTrait Implementations§
Source§impl<'de> Deserialize<'de> for IfStmt
impl<'de> Deserialize<'de> for IfStmt
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for IfStmt
Auto Trait Implementations§
impl Freeze for IfStmt
impl RefUnwindSafe for IfStmt
impl Send for IfStmt
impl Sync for IfStmt
impl Unpin for IfStmt
impl UnwindSafe for IfStmt
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