pub enum MediaConditionAllType {
Not(MediaNot),
And(MediaAnd),
Or(MediaOr),
MediaInParens(MediaInParens),
}
Variants§
Implementations§
Source§impl 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 const fn is_media_in_parens(&self) -> bool
pub const 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§
Source§impl Clone for MediaConditionAllType
impl Clone for MediaConditionAllType
Source§fn clone(&self) -> MediaConditionAllType
fn clone(&self) -> MediaConditionAllType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for MediaConditionAllType
impl Debug for MediaConditionAllType
Source§impl EqIgnoreSpan for MediaConditionAllType
impl EqIgnoreSpan for MediaConditionAllType
fn eq_ignore_span(&self, other: &Self) -> bool
Source§impl From<MediaAnd> for MediaConditionAllType
impl From<MediaAnd> for MediaConditionAllType
Source§impl From<MediaInParens> for MediaConditionAllType
impl From<MediaInParens> for MediaConditionAllType
Source§fn from(v: MediaInParens) -> Self
fn from(v: MediaInParens) -> Self
Source§impl From<MediaNot> for MediaConditionAllType
impl From<MediaNot> for MediaConditionAllType
Source§impl From<MediaOr> for MediaConditionAllType
impl From<MediaOr> for MediaConditionAllType
Source§impl Hash for MediaConditionAllType
impl Hash for MediaConditionAllType
Source§impl PartialEq for MediaConditionAllType
impl PartialEq for MediaConditionAllType
Source§impl Spanned for MediaConditionAllType
impl Spanned for MediaConditionAllType
impl Eq for MediaConditionAllType
impl StructuralPartialEq for MediaConditionAllType
Auto Trait Implementations§
impl Freeze for MediaConditionAllType
impl RefUnwindSafe for MediaConditionAllType
impl Send for MediaConditionAllType
impl Sync for MediaConditionAllType
impl Unpin for MediaConditionAllType
impl UnwindSafe for MediaConditionAllType
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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