pub enum MediaConditionType {
All(MediaCondition),
WithoutOr(MediaConditionWithoutOr),
}Variants§
All(MediaCondition)
WithoutOr(MediaConditionWithoutOr)
Implementations§
Source§impl MediaConditionType
impl MediaConditionType
Sourcepub fn as_all(&self) -> Option<&MediaCondition>
pub fn as_all(&self) -> Option<&MediaCondition>
Returns Some if self is a reference of variant All, and None otherwise.
Sourcepub fn as_mut_all(&mut self) -> Option<&mut MediaCondition>
pub fn as_mut_all(&mut self) -> Option<&mut MediaCondition>
Returns Some if self is a mutable reference of variant All, and None otherwise.
Sourcepub fn expect_all(self) -> MediaConditionwhere
Self: Debug,
pub fn expect_all(self) -> MediaConditionwhere
Self: Debug,
Sourcepub fn all(self) -> Option<MediaCondition>
pub fn all(self) -> Option<MediaCondition>
Returns Some if self is of variant All, and None otherwise.
Sourcepub const fn is_without_or(&self) -> bool
pub const fn is_without_or(&self) -> bool
Returns true if self is of variant WithoutOr.
Sourcepub fn as_without_or(&self) -> Option<&MediaConditionWithoutOr>
pub fn as_without_or(&self) -> Option<&MediaConditionWithoutOr>
Returns Some if self is a reference of variant WithoutOr, and None otherwise.
Sourcepub fn as_mut_without_or(&mut self) -> Option<&mut MediaConditionWithoutOr>
pub fn as_mut_without_or(&mut self) -> Option<&mut MediaConditionWithoutOr>
Returns Some if self is a mutable reference of variant WithoutOr, and None otherwise.
Sourcepub fn expect_without_or(self) -> MediaConditionWithoutOrwhere
Self: Debug,
pub fn expect_without_or(self) -> MediaConditionWithoutOrwhere
Self: Debug,
Sourcepub fn without_or(self) -> Option<MediaConditionWithoutOr>
pub fn without_or(self) -> Option<MediaConditionWithoutOr>
Returns Some if self is of variant WithoutOr, and None otherwise.
Trait Implementations§
Source§impl Clone for MediaConditionType
impl Clone for MediaConditionType
Source§fn clone(&self) -> MediaConditionType
fn clone(&self) -> MediaConditionType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MediaConditionType
impl Debug for MediaConditionType
Source§impl EqIgnoreSpan for MediaConditionType
impl EqIgnoreSpan for MediaConditionType
fn eq_ignore_span(&self, other: &Self) -> bool
Source§impl From<MediaCondition> for MediaConditionType
impl From<MediaCondition> for MediaConditionType
Source§fn from(v: MediaCondition) -> Self
fn from(v: MediaCondition) -> Self
Converts to this type from the input type.
Source§impl From<MediaConditionWithoutOr> for MediaConditionType
impl From<MediaConditionWithoutOr> for MediaConditionType
Source§fn from(v: MediaConditionWithoutOr) -> Self
fn from(v: MediaConditionWithoutOr) -> Self
Converts to this type from the input type.
Source§impl Hash for MediaConditionType
impl Hash for MediaConditionType
Source§impl PartialEq for MediaConditionType
impl PartialEq for MediaConditionType
Source§impl Spanned for MediaConditionType
impl Spanned for MediaConditionType
impl Eq for MediaConditionType
impl StructuralPartialEq for MediaConditionType
Auto Trait Implementations§
impl Freeze for MediaConditionType
impl RefUnwindSafe for MediaConditionType
impl Send for MediaConditionType
impl Sync for MediaConditionType
impl Unpin for MediaConditionType
impl UnwindSafe for MediaConditionType
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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