pub struct If<T> {
pub condition: Box<Expression<T>>,
pub if_block: Block<T>,
pub else_block: Option<Block<T>>,
pub position: Position,
pub info: T,
}Fields§
§condition: Box<Expression<T>>§if_block: Block<T>§else_block: Option<Block<T>>§position: Position§info: TImplementations§
Trait Implementations§
Source§impl<T: Ord> Ord for If<T>
impl<T: Ord> Ord for If<T>
Source§impl<T: PartialOrd> PartialOrd for If<T>
impl<T: PartialOrd> PartialOrd for If<T>
impl<T: Eq> Eq for If<T>
impl<T> StructuralPartialEq for If<T>
Auto Trait Implementations§
impl<T> Freeze for If<T>where
T: Freeze,
impl<T> RefUnwindSafe for If<T>where
T: RefUnwindSafe,
impl<T> Send for If<T>where
T: Send,
impl<T> Sync for If<T>where
T: Sync,
impl<T> Unpin for If<T>where
T: Unpin,
impl<T> UnwindSafe for If<T>where
T: UnwindSafe,
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