pub struct ExprNary<K = usize, V = AnyBox> { /* private fields */ }
Implementations§
Source§impl<K, V> ExprNary<K, V>
impl<K, V> ExprNary<K, V>
pub fn new(args: impl IntoIterator<Item = Expr<K, V>>, op: NaryOp) -> Self
pub fn as_slice(&self) -> &[Box<Expr<K, V>>]
pub fn as_mut_slice(&mut self) -> &mut [Box<Expr<K, V>>]
pub fn args(&self) -> &Vec<Box<Expr<K, V>>>
pub fn args_mut(&mut self) -> &mut Vec<Box<Expr<K, V>>>
pub fn op(&self) -> NaryOp
pub fn op_mut(&mut self) -> &mut NaryOp
Trait Implementations§
Source§impl<K: Ord, V: Ord> Ord for ExprNary<K, V>
impl<K: Ord, V: Ord> Ord for ExprNary<K, V>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<K: PartialOrd, V: PartialOrd> PartialOrd for ExprNary<K, V>
impl<K: PartialOrd, V: PartialOrd> PartialOrd for ExprNary<K, V>
impl<K: Eq, V: Eq> Eq for ExprNary<K, V>
impl<K, V> StructuralPartialEq for ExprNary<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for ExprNary<K, V>
impl<K, V> RefUnwindSafe for ExprNary<K, V>where
V: RefUnwindSafe,
K: RefUnwindSafe,
impl<K, V> Send for ExprNary<K, V>
impl<K, V> Sync for ExprNary<K, V>
impl<K, V> Unpin for ExprNary<K, V>
impl<K, V> UnwindSafe for ExprNary<K, V>where
V: UnwindSafe,
K: 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