pub enum MediaConditionAllType {
Not(MediaNot),
And(MediaAnd),
Or(MediaOr),
MediaInParens(MediaInParens),
}
Variants
Not(MediaNot)
And(MediaAnd)
Or(MediaOr)
MediaInParens(MediaInParens)
Implementations
sourceimpl MediaConditionAllType
impl MediaConditionAllType
sourcepub fn as_not(&self) -> Option<&MediaNot>
pub fn as_not(&self) -> Option<&MediaNot>
Returns Some
if self
is a reference of variant Not
, and None
otherwise.
sourcepub fn as_mut_not(&mut self) -> Option<&mut MediaNot>
pub fn as_mut_not(&mut self) -> Option<&mut MediaNot>
Returns Some
if self
is a mutable reference of variant Not
, and None
otherwise.
sourcepub fn expect_not(self) -> MediaNotwhere
Self: Debug,
pub fn expect_not(self) -> MediaNotwhere
Self: Debug,
sourcepub fn not(self) -> Option<MediaNot>
pub fn not(self) -> Option<MediaNot>
Returns Some
if self
is of variant Not
, and None
otherwise.
sourcepub fn as_and(&self) -> Option<&MediaAnd>
pub fn as_and(&self) -> Option<&MediaAnd>
Returns Some
if self
is a reference of variant And
, and None
otherwise.
sourcepub fn as_mut_and(&mut self) -> Option<&mut MediaAnd>
pub fn as_mut_and(&mut self) -> Option<&mut MediaAnd>
Returns Some
if self
is a mutable reference of variant And
, and None
otherwise.
sourcepub fn expect_and(self) -> MediaAndwhere
Self: Debug,
pub fn expect_and(self) -> MediaAndwhere
Self: Debug,
sourcepub fn and(self) -> Option<MediaAnd>
pub fn and(self) -> Option<MediaAnd>
Returns Some
if self
is of variant And
, and None
otherwise.
sourcepub fn as_or(&self) -> Option<&MediaOr>
pub fn as_or(&self) -> Option<&MediaOr>
Returns Some
if self
is a reference of variant Or
, and None
otherwise.
sourcepub fn as_mut_or(&mut self) -> Option<&mut MediaOr>
pub fn as_mut_or(&mut self) -> Option<&mut MediaOr>
Returns Some
if self
is a mutable reference of variant Or
, and None
otherwise.
sourcepub fn is_media_in_parens(&self) -> bool
pub fn is_media_in_parens(&self) -> bool
Returns true
if self
is of variant MediaInParens
.
sourcepub fn as_media_in_parens(&self) -> Option<&MediaInParens>
pub fn as_media_in_parens(&self) -> Option<&MediaInParens>
Returns Some
if self
is a reference of variant MediaInParens
, and None
otherwise.
sourcepub fn as_mut_media_in_parens(&mut self) -> Option<&mut MediaInParens>
pub fn as_mut_media_in_parens(&mut self) -> Option<&mut MediaInParens>
Returns Some
if self
is a mutable reference of variant MediaInParens
, and None
otherwise.
sourcepub fn expect_media_in_parens(self) -> MediaInParenswhere
Self: Debug,
pub fn expect_media_in_parens(self) -> MediaInParenswhere
Self: Debug,
Unwraps the value, yielding the content of MediaInParens
.
Panics
Panics if the value is not MediaInParens
, with a panic message including the content of self
.
sourcepub fn media_in_parens(self) -> Option<MediaInParens>
pub fn media_in_parens(self) -> Option<MediaInParens>
Returns Some
if self
is of variant MediaInParens
, and None
otherwise.
Trait Implementations
sourceimpl Clone for MediaConditionAllType
impl Clone for MediaConditionAllType
sourcefn clone(&self) -> MediaConditionAllType
fn clone(&self) -> MediaConditionAllType
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more