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§fn eq(&self, other: &SupportsConditionType) -> bool
fn eq(&self, other: &SupportsConditionType) -> bool
self
and other
values to be equal, and is used
by ==
.