pub enum Expr<T> {
Any(Any<T>),
All(All<T>),
Not(Not<T>),
Var(Var<T>),
Const(bool),
}Variants§
Implementations§
Source§impl<T> Expr<T>
impl<T> Expr<T>
pub fn as_mut_any(&mut self) -> Option<&mut Any<T>>
pub fn as_mut_all(&mut self) -> Option<&mut All<T>>
pub fn as_mut_not(&mut self) -> Option<&mut Not<T>>
pub fn as_mut_var(&mut self) -> Option<&mut Var<T>>
pub fn as_mut_const(&mut self) -> Option<&mut bool>
Source§impl<T> Expr<T>
impl<T> Expr<T>
pub fn is_empty_not_any(&self) -> bool
pub fn is_empty_not_all(&self) -> bool
pub fn is_expr_not_var(&self) -> bool
pub fn as_mut_not_any(&mut self) -> Option<&mut Any<T>>
pub fn as_mut_not_all(&mut self) -> Option<&mut All<T>>
pub fn as_mut_expr_list(&mut self) -> Option<&mut Vec<Expr<T>>>
Trait Implementations§
impl<T: Eq> Eq for Expr<T>
impl<T> StructuralPartialEq for Expr<T>
Auto Trait Implementations§
impl<T> Freeze for Expr<T>where
T: Freeze,
impl<T> RefUnwindSafe for Expr<T>where
T: RefUnwindSafe,
impl<T> Send for Expr<T>where
T: Send,
impl<T> Sync for Expr<T>where
T: Sync,
impl<T> Unpin for Expr<T>where
T: Unpin,
impl<T> UnwindSafe for Expr<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