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) -> 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
sourceimpl Clone for SupportsConditionType
impl Clone for SupportsConditionType
sourcefn clone(&self) -> SupportsConditionType
fn clone(&self) -> SupportsConditionType
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more