pub enum NaryOp {
Product(Product),
Sum(Sum),
}
Variants§
Implementations§
Source§impl NaryOp
impl NaryOp
Sourcepub const fn is_product(&self) -> bool
pub const fn is_product(&self) -> bool
Returns true if the enum is NaryOp::Product otherwise false
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NaryOp
impl<'de> Deserialize<'de> for NaryOp
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl IntoEnumIterator for NaryOp
impl IntoEnumIterator for NaryOp
type Iterator = NaryOpIter
fn iter() -> NaryOpIter ⓘ
Source§impl Ord for NaryOp
impl Ord for NaryOp
Source§impl PartialOrd for NaryOp
impl PartialOrd for NaryOp
Source§impl VariantNames for NaryOp
impl VariantNames for NaryOp
impl Copy for NaryOp
impl Eq for NaryOp
impl StructuralPartialEq for NaryOp
Auto Trait Implementations§
impl Freeze for NaryOp
impl RefUnwindSafe for NaryOp
impl Send for NaryOp
impl Sync for NaryOp
impl Unpin for NaryOp
impl UnwindSafe for NaryOp
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