pub struct ExprTernary<K = usize, V = AnyBox> { /* private fields */ }
Implementations§
Source§impl<K, V> ExprTernary<K, V>
impl<K, V> ExprTernary<K, V>
pub fn new(x: Expr<K, V>, y: Expr<K, V>, z: Expr<K, V>, op: TernaryOp) -> Self
pub fn op(&self) -> TernaryOp
pub fn op_mut(&mut self) -> &mut TernaryOp
pub fn x(&self) -> &Expr<K, V>
pub fn y(&self) -> &Expr<K, V>
pub fn z(&self) -> &Expr<K, V>
pub fn x_mut(&mut self) -> &mut Expr<K, V>
pub fn y_mut(&mut self) -> &mut Expr<K, V>
pub fn z_mut(&mut self) -> &mut Expr<K, V>
Trait Implementations§
Source§impl<K: Clone, V: Clone> Clone for ExprTernary<K, V>
impl<K: Clone, V: Clone> Clone for ExprTernary<K, V>
Source§fn clone(&self) -> ExprTernary<K, V>
fn clone(&self) -> ExprTernary<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 ExprTernary<K, V>
impl<K: Ord, V: Ord> Ord for ExprTernary<K, V>
Source§fn cmp(&self, other: &ExprTernary<K, V>) -> Ordering
fn cmp(&self, other: &ExprTernary<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 ExprTernary<K, V>
impl<K: PartialOrd, V: PartialOrd> PartialOrd for ExprTernary<K, V>
impl<K: Eq, V: Eq> Eq for ExprTernary<K, V>
impl<K, V> StructuralPartialEq for ExprTernary<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for ExprTernary<K, V>
impl<K, V> RefUnwindSafe for ExprTernary<K, V>where
V: RefUnwindSafe,
K: RefUnwindSafe,
impl<K, V> Send for ExprTernary<K, V>
impl<K, V> Sync for ExprTernary<K, V>
impl<K, V> Unpin for ExprTernary<K, V>
impl<K, V> UnwindSafe for ExprTernary<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