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 const fn is_supports_in_parens(&self) -> bool
pub const 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 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 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 for SupportsConditionType
impl PartialEq for SupportsConditionType
Source§impl Spanned for SupportsConditionType
impl Spanned for SupportsConditionType
impl Eq for SupportsConditionType
impl StructuralPartialEq for SupportsConditionType
Auto Trait Implementations§
impl Freeze for SupportsConditionType
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> 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more