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 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§
source§impl Archive for MediaConditionAllType
impl Archive for MediaConditionAllType
§type Archived = ArchivedMediaConditionAllType
type Archived = ArchivedMediaConditionAllType
§type Resolver = MediaConditionAllTypeResolver
type Resolver = MediaConditionAllTypeResolver
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<'de> Deserialize<'de> for MediaConditionAllType
impl<'de> Deserialize<'de> for MediaConditionAllType
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
source§impl<__D> Deserialize<MediaConditionAllType, __D> for Archived<MediaConditionAllType>where
__D: SharedDeserializeRegistry + Fallible + ?Sized,
impl<__D> Deserialize<MediaConditionAllType, __D> for Archived<MediaConditionAllType>where __D: SharedDeserializeRegistry + Fallible + ?Sized,
source§fn deserialize(
&self,
deserializer: &mut __D
) -> Result<MediaConditionAllType, __D::Error>
fn deserialize( &self, deserializer: &mut __D ) -> Result<MediaConditionAllType, __D::Error>
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<MediaConditionAllType> for MediaConditionAllType
impl PartialEq<MediaConditionAllType> for MediaConditionAllType
source§fn eq(&self, other: &MediaConditionAllType) -> bool
fn eq(&self, other: &MediaConditionAllType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<__S> Serialize<__S> for MediaConditionAllTypewhere
__S: Serializer + ScratchSpace + SharedSerializeRegistry + Fallible + ?Sized,
impl<__S> Serialize<__S> for MediaConditionAllTypewhere __S: Serializer + ScratchSpace + SharedSerializeRegistry + Fallible + ?Sized,
source§impl Serialize for MediaConditionAllType
impl Serialize for MediaConditionAllType
source§impl Spanned for MediaConditionAllType
impl Spanned for MediaConditionAllType
impl Eq for MediaConditionAllType
impl StructuralEq for MediaConditionAllType
impl StructuralPartialEq for MediaConditionAllType
Auto Trait Implementations§
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> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
source§impl<T> ArchiveUnsized for Twhere
T: Archive,
impl<T> ArchiveUnsized for Twhere T: Archive,
§type Archived = <T as Archive>::Archived
type Archived = <T as Archive>::Archived
Archive
, it may be unsized. Read more§type MetadataResolver = ()
type MetadataResolver = ()
source§unsafe fn resolve_metadata(
&self,
_: usize,
_: <T as ArchiveUnsized>::MetadataResolver,
_: *mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata
)
unsafe fn resolve_metadata( &self, _: usize, _: <T as ArchiveUnsized>::MetadataResolver, _: *mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata )
source§impl<T> CallHasher for Twhere
T: Hash + ?Sized,
impl<T> CallHasher for Twhere T: Hash + ?Sized,
source§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.