pub enum SupportsConditionType {
Not(SupportsNot),
And(SupportsAnd),
Or(SupportsOr),
SupportsInParens(SupportsInParens),
}
Variants§
Implementations§
source§impl SupportsConditionType
impl SupportsConditionType
sourcepub fn as_not(&self) -> Option<&SupportsNot>
pub fn as_not(&self) -> Option<&SupportsNot>
Returns Some
if self
is a reference of variant Not
, and None
otherwise.
sourcepub fn as_mut_not(&mut self) -> Option<&mut SupportsNot>
pub fn as_mut_not(&mut self) -> Option<&mut SupportsNot>
Returns Some
if self
is a mutable reference of variant Not
, and None
otherwise.
sourcepub fn expect_not(self) -> SupportsNotwhere
Self: Debug,
pub fn expect_not(self) -> SupportsNotwhere Self: Debug,
sourcepub fn not(self) -> Option<SupportsNot>
pub fn not(self) -> Option<SupportsNot>
Returns Some
if self
is of variant Not
, and None
otherwise.
sourcepub fn as_and(&self) -> Option<&SupportsAnd>
pub fn as_and(&self) -> Option<&SupportsAnd>
Returns Some
if self
is a reference of variant And
, and None
otherwise.
sourcepub fn as_mut_and(&mut self) -> Option<&mut SupportsAnd>
pub fn as_mut_and(&mut self) -> Option<&mut SupportsAnd>
Returns Some
if self
is a mutable reference of variant And
, and None
otherwise.
sourcepub fn expect_and(self) -> SupportsAndwhere
Self: Debug,
pub fn expect_and(self) -> SupportsAndwhere Self: Debug,
sourcepub fn and(self) -> Option<SupportsAnd>
pub fn and(self) -> Option<SupportsAnd>
Returns Some
if self
is of variant And
, and None
otherwise.
sourcepub fn as_or(&self) -> Option<&SupportsOr>
pub fn as_or(&self) -> Option<&SupportsOr>
Returns Some
if self
is a reference of variant Or
, and None
otherwise.
sourcepub fn as_mut_or(&mut self) -> Option<&mut SupportsOr>
pub fn as_mut_or(&mut self) -> Option<&mut SupportsOr>
Returns Some
if self
is a mutable reference of variant Or
, and None
otherwise.
sourcepub fn expect_or(self) -> SupportsOrwhere
Self: Debug,
pub fn expect_or(self) -> SupportsOrwhere Self: Debug,
sourcepub fn or(self) -> Option<SupportsOr>
pub fn or(self) -> Option<SupportsOr>
Returns Some
if self
is of variant Or
, and None
otherwise.
sourcepub fn is_supports_in_parens(&self) -> bool
pub fn is_supports_in_parens(&self) -> bool
Returns true
if self
is of variant SupportsInParens
.
sourcepub fn as_supports_in_parens(&self) -> Option<&SupportsInParens>
pub fn as_supports_in_parens(&self) -> Option<&SupportsInParens>
Returns Some
if self
is a reference of variant SupportsInParens
, and None
otherwise.
sourcepub fn as_mut_supports_in_parens(&mut self) -> Option<&mut SupportsInParens>
pub fn as_mut_supports_in_parens(&mut self) -> Option<&mut SupportsInParens>
Returns Some
if self
is a mutable reference of variant SupportsInParens
, and None
otherwise.
sourcepub fn expect_supports_in_parens(self) -> SupportsInParenswhere
Self: Debug,
pub fn expect_supports_in_parens(self) -> SupportsInParenswhere Self: Debug,
Unwraps the value, yielding the content of SupportsInParens
.
Panics
Panics if the value is not SupportsInParens
, with a panic message including the content of self
.
sourcepub fn supports_in_parens(self) -> Option<SupportsInParens>
pub fn supports_in_parens(self) -> Option<SupportsInParens>
Returns Some
if self
is of variant SupportsInParens
, and None
otherwise.
Trait Implementations§
source§impl Archive for SupportsConditionType
impl Archive for SupportsConditionType
§type Archived = ArchivedSupportsConditionType
type Archived = ArchivedSupportsConditionType
§type Resolver = SupportsConditionTypeResolver
type Resolver = SupportsConditionTypeResolver
source§impl Clone for SupportsConditionType
impl Clone for SupportsConditionType
source§fn clone(&self) -> SupportsConditionType
fn clone(&self) -> SupportsConditionType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SupportsConditionType
impl Debug for SupportsConditionType
source§impl<'de> Deserialize<'de> for SupportsConditionType
impl<'de> Deserialize<'de> for SupportsConditionType
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>,
source§impl<__D> Deserialize<SupportsConditionType, __D> for Archived<SupportsConditionType>where
__D: SharedDeserializeRegistry + Fallible + ?Sized,
impl<__D> Deserialize<SupportsConditionType, __D> for Archived<SupportsConditionType>where __D: SharedDeserializeRegistry + Fallible + ?Sized,
source§fn deserialize(
&self,
deserializer: &mut __D
) -> Result<SupportsConditionType, __D::Error>
fn deserialize( &self, deserializer: &mut __D ) -> Result<SupportsConditionType, __D::Error>
source§impl EqIgnoreSpan for SupportsConditionType
impl EqIgnoreSpan for SupportsConditionType
fn eq_ignore_span(&self, other: &Self) -> bool
source§impl From<SupportsAnd> for SupportsConditionType
impl From<SupportsAnd> for SupportsConditionType
source§fn from(v: SupportsAnd) -> Self
fn from(v: SupportsAnd) -> Self
source§impl From<SupportsInParens> for SupportsConditionType
impl From<SupportsInParens> for SupportsConditionType
source§fn from(v: SupportsInParens) -> Self
fn from(v: SupportsInParens) -> Self
source§impl From<SupportsNot> for SupportsConditionType
impl From<SupportsNot> for SupportsConditionType
source§fn from(v: SupportsNot) -> Self
fn from(v: SupportsNot) -> Self
source§impl From<SupportsOr> for SupportsConditionType
impl From<SupportsOr> for SupportsConditionType
source§fn from(v: SupportsOr) -> Self
fn from(v: SupportsOr) -> Self
source§impl Hash for SupportsConditionType
impl Hash for SupportsConditionType
source§impl PartialEq<SupportsConditionType> for SupportsConditionType
impl PartialEq<SupportsConditionType> for SupportsConditionType
source§fn eq(&self, other: &SupportsConditionType) -> bool
fn eq(&self, other: &SupportsConditionType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<__S> Serialize<__S> for SupportsConditionTypewhere
__S: Serializer + ScratchSpace + SharedSerializeRegistry + Fallible + ?Sized,
impl<__S> Serialize<__S> for SupportsConditionTypewhere __S: Serializer + ScratchSpace + SharedSerializeRegistry + Fallible + ?Sized,
source§impl Serialize for SupportsConditionType
impl Serialize for SupportsConditionType
source§impl Spanned for SupportsConditionType
impl Spanned for SupportsConditionType
impl Eq for SupportsConditionType
impl StructuralEq for SupportsConditionType
impl StructuralPartialEq for SupportsConditionType
Auto Trait Implementations§
impl RefUnwindSafe for SupportsConditionType
impl Send for SupportsConditionType
impl Sync for SupportsConditionType
impl Unpin for SupportsConditionType
impl UnwindSafe for SupportsConditionType
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
source§impl<T> ArchiveUnsized for Twhere
T: Archive,
impl<T> ArchiveUnsized for Twhere T: Archive,
§type Archived = <T as Archive>::Archived
type Archived = <T as Archive>::Archived
Archive
, it may be unsized. Read more§type MetadataResolver = ()
type MetadataResolver = ()
source§unsafe fn resolve_metadata(
&self,
_: usize,
_: <T as ArchiveUnsized>::MetadataResolver,
_: *mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata
)
unsafe fn resolve_metadata( &self, _: usize, _: <T as ArchiveUnsized>::MetadataResolver, _: *mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata )
source§impl<T> CallHasher for Twhere
T: Hash + ?Sized,
impl<T> CallHasher for Twhere T: Hash + ?Sized,
source§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.