pub struct ExprBinary<K = usize, V = AnyBox> { /* private fields */ }
Implementations§
Source§impl<K, V> ExprBinary<K, V>
impl<K, V> ExprBinary<K, V>
pub fn new(lhs: Expr<K, V>, rhs: Expr<K, V>, op: BinaryOp) -> Self
pub fn op(&self) -> BinaryOp
pub fn op_mut(&mut self) -> &mut BinaryOp
pub fn lhs(&self) -> &Expr<K, V>
pub fn rhs(&self) -> &Expr<K, V>
pub fn lhs_mut(&mut self) -> &mut Expr<K, V>
pub fn rhs_mut(&mut self) -> &mut Expr<K, V>
Trait Implementations§
Source§impl<K: Clone, V: Clone> Clone for ExprBinary<K, V>
impl<K: Clone, V: Clone> Clone for ExprBinary<K, V>
Source§fn clone(&self) -> ExprBinary<K, V>
fn clone(&self) -> ExprBinary<K, V>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<K: Ord, V: Ord> Ord for ExprBinary<K, V>
impl<K: Ord, V: Ord> Ord for ExprBinary<K, V>
Source§fn cmp(&self, other: &ExprBinary<K, V>) -> Ordering
fn cmp(&self, other: &ExprBinary<K, V>) -> Ordering
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 ExprBinary<K, V>
impl<K: PartialOrd, V: PartialOrd> PartialOrd for ExprBinary<K, V>
impl<K: Eq, V: Eq> Eq for ExprBinary<K, V>
impl<K, V> StructuralPartialEq for ExprBinary<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for ExprBinary<K, V>
impl<K, V> RefUnwindSafe for ExprBinary<K, V>where
V: RefUnwindSafe,
K: RefUnwindSafe,
impl<K, V> Send for ExprBinary<K, V>
impl<K, V> Sync for ExprBinary<K, V>
impl<K, V> Unpin for ExprBinary<K, V>
impl<K, V> UnwindSafe for ExprBinary<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