pub struct IfelseStatement {
pub exprs: Vec<(Expr, Expr)>,
pub close: Option<Expr>,
}Fields§
§exprs: Vec<(Expr, Expr)>The first if condition followed by a body, followed by any number of else if’s
close: Option<Expr>the final else body, if there is one
Implementations§
Trait Implementations§
Source§impl Clone for IfelseStatement
impl Clone for IfelseStatement
Source§impl Debug for IfelseStatement
impl Debug for IfelseStatement
Source§impl Default for IfelseStatement
impl Default for IfelseStatement
impl Eq for IfelseStatement
Source§impl From<IfelseStatement> for IfelseStatement
impl From<IfelseStatement> for IfelseStatement
Source§fn from(v: IfelseStatement) -> Self
fn from(v: IfelseStatement) -> Self
Converts to this type from the input type.
Source§impl From<IfelseStatement> for IfelseStatement
impl From<IfelseStatement> for IfelseStatement
Source§fn from(v: IfelseStatement) -> Self
fn from(v: IfelseStatement) -> Self
Converts to this type from the input type.
Source§impl Hash for IfelseStatement
impl Hash for IfelseStatement
Source§impl PartialEq for IfelseStatement
impl PartialEq for IfelseStatement
impl StructuralPartialEq for IfelseStatement
Source§impl ToSql for IfelseStatement
impl ToSql for IfelseStatement
Source§impl<V: Visitor> Visit<V> for IfelseStatement
impl<V: Visitor> Visit<V> for IfelseStatement
Auto Trait Implementations§
impl !Freeze for IfelseStatement
impl RefUnwindSafe for IfelseStatement
impl Send for IfelseStatement
impl Sync for IfelseStatement
impl Unpin for IfelseStatement
impl UnsafeUnpin for IfelseStatement
impl UnwindSafe for IfelseStatement
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.