pub struct IfStatement {
pub test: Expression,
pub consequent: Statement,
pub alternate: Option<Statement>,
}
Fields
test: Expression
consequent: Statement
alternate: Option<Statement>
Trait Implementations
sourceimpl Clone for IfStatement
impl Clone for IfStatement
sourcefn clone(&self) -> IfStatement
fn clone(&self) -> IfStatement
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for IfStatement
impl Debug for IfStatement
sourceimpl Interpretable for IfStatement
impl Interpretable for IfStatement
sourceimpl PartialEq<IfStatement> for IfStatement
impl PartialEq<IfStatement> for IfStatement
sourcefn eq(&self, other: &IfStatement) -> bool
fn eq(&self, other: &IfStatement) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &IfStatement) -> bool
fn ne(&self, other: &IfStatement) -> bool
This method tests for !=
.
impl Eq for IfStatement
impl StructuralEq for IfStatement
impl StructuralPartialEq for IfStatement
Auto Trait Implementations
impl RefUnwindSafe for IfStatement
impl !Send for IfStatement
impl !Sync for IfStatement
impl Unpin for IfStatement
impl UnwindSafe for IfStatement
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more