Enum xkcd_1975::Conditional
source · pub enum Conditional {
Always,
TagSet {
contents: MenuId,
},
TagUnset {
contents: MenuId,
},
TLNot {
contents: Box<Conditional>,
},
TLAnd {
contents: Vec<Conditional>,
},
TLOr {
contents: Vec<Conditional>,
},
}
Variants§
Always
TagSet
TagUnset
TLNot
Fields
§
contents: Box<Conditional>
TLAnd
Fields
§
contents: Vec<Conditional>
TLOr
Fields
§
contents: Vec<Conditional>
Implementations§
Trait Implementations§
source§impl Clone for Conditional
impl Clone for Conditional
source§fn clone(&self) -> Conditional
fn clone(&self) -> Conditional
Returns a copy 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 Debug for Conditional
impl Debug for Conditional
source§impl<'de> Deserialize<'de> for Conditional
impl<'de> Deserialize<'de> for Conditional
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 PartialEq for Conditional
impl PartialEq for Conditional
source§fn eq(&self, other: &Conditional) -> bool
fn eq(&self, other: &Conditional) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Conditional
impl Serialize for Conditional
impl Eq for Conditional
impl StructuralPartialEq for Conditional
Auto Trait Implementations§
impl Freeze for Conditional
impl RefUnwindSafe for Conditional
impl Send for Conditional
impl Sync for Conditional
impl Unpin for Conditional
impl UnwindSafe for Conditional
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