pub enum SupportsConditionType {
Not(SupportsNot),
And(SupportsAnd),
Or(SupportsOr),
SupportsInParens(SupportsInParens),
}
Variants
Not(SupportsNot)
And(SupportsAnd)
Or(SupportsOr)
SupportsInParens(SupportsInParens)
Implementations
sourceimpl 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) -> SupportsNot where
Self: Debug,
pub fn expect_not(self) -> SupportsNot where
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) -> SupportsAnd where
Self: Debug,
pub fn expect_and(self) -> SupportsAnd where
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) -> SupportsOr where
Self: Debug,
pub fn expect_or(self) -> SupportsOr where
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) -> SupportsInParens where
Self: Debug,
pub fn expect_supports_in_parens(self) -> SupportsInParens where
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
sourceimpl Clone for SupportsConditionType
impl Clone for SupportsConditionType
sourcefn clone(&self) -> SupportsConditionType
fn clone(&self) -> SupportsConditionType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SupportsConditionType
impl Debug for SupportsConditionType
sourceimpl<'de> Deserialize<'de> for SupportsConditionType
impl<'de> Deserialize<'de> for SupportsConditionType
sourcefn 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
sourceimpl EqIgnoreSpan for SupportsConditionType
impl EqIgnoreSpan for SupportsConditionType
fn eq_ignore_span(&self, other: &Self) -> bool
sourceimpl From<SupportsAnd> for SupportsConditionType
impl From<SupportsAnd> for SupportsConditionType
sourcefn from(v: SupportsAnd) -> Self
fn from(v: SupportsAnd) -> Self
Converts to this type from the input type.
sourceimpl From<SupportsInParens> for SupportsConditionType
impl From<SupportsInParens> for SupportsConditionType
sourcefn from(v: SupportsInParens) -> Self
fn from(v: SupportsInParens) -> Self
Converts to this type from the input type.
sourceimpl From<SupportsNot> for SupportsConditionType
impl From<SupportsNot> for SupportsConditionType
sourcefn from(v: SupportsNot) -> Self
fn from(v: SupportsNot) -> Self
Converts to this type from the input type.
sourceimpl From<SupportsOr> for SupportsConditionType
impl From<SupportsOr> for SupportsConditionType
sourcefn from(v: SupportsOr) -> Self
fn from(v: SupportsOr) -> Self
Converts to this type from the input type.
sourceimpl Hash for SupportsConditionType
impl Hash for SupportsConditionType
sourceimpl PartialEq<SupportsConditionType> for SupportsConditionType
impl PartialEq<SupportsConditionType> for SupportsConditionType
sourcefn eq(&self, other: &SupportsConditionType) -> bool
fn eq(&self, other: &SupportsConditionType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SupportsConditionType) -> bool
fn ne(&self, other: &SupportsConditionType) -> bool
This method tests for !=
.
sourceimpl Serialize for SupportsConditionType
impl Serialize for SupportsConditionType
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more