Struct PlayerFeatureBitsExt
pub struct PlayerFeatureBitsExt(/* private fields */);
Implementations§
§impl PlayerFeatureBitsExt
impl PlayerFeatureBitsExt
pub const ONLY_SEARCHABLE_WHEN_ADDRESSED: PlayerFeatureBitsExt
pub const NOW_PLAYING: PlayerFeatureBitsExt
pub const UID_PERSISTENCY: PlayerFeatureBitsExt
pub const NUMBER_OF_ITEMS: PlayerFeatureBitsExt
pub const COVER_ART: PlayerFeatureBitsExt
§impl PlayerFeatureBitsExt
impl PlayerFeatureBitsExt
pub const fn empty() -> PlayerFeatureBitsExt
pub const fn empty() -> PlayerFeatureBitsExt
Get a flags value with all bits unset.
pub const fn all() -> PlayerFeatureBitsExt
pub const fn all() -> PlayerFeatureBitsExt
Get a flags value with all known bits set.
pub const fn bits(&self) -> u64
pub const fn bits(&self) -> u64
Get the underlying bits value.
The returned value is exactly the bits set in this flags value.
pub const fn from_bits(bits: u64) -> Option<PlayerFeatureBitsExt>
pub const fn from_bits(bits: u64) -> Option<PlayerFeatureBitsExt>
Convert from a bits value.
This method will return None
if any unknown bits are set.
pub const fn from_bits_truncate(bits: u64) -> PlayerFeatureBitsExt
pub const fn from_bits_truncate(bits: u64) -> PlayerFeatureBitsExt
Convert from a bits value, unsetting any unknown bits.
pub const fn from_bits_retain(bits: u64) -> PlayerFeatureBitsExt
pub const fn from_bits_retain(bits: u64) -> PlayerFeatureBitsExt
Convert from a bits value exactly.
pub fn from_name(name: &str) -> Option<PlayerFeatureBitsExt>
pub fn from_name(name: &str) -> Option<PlayerFeatureBitsExt>
Get a flags value with the bits of a flag with the given name set.
This method will return None
if name
is empty or doesn’t
correspond to any named flag.
pub const fn intersects(&self, other: PlayerFeatureBitsExt) -> bool
pub const fn intersects(&self, other: PlayerFeatureBitsExt) -> bool
Whether any set bits in a source flags value are also set in a target flags value.
pub const fn contains(&self, other: PlayerFeatureBitsExt) -> bool
pub const fn contains(&self, other: PlayerFeatureBitsExt) -> bool
Whether all set bits in a source flags value are also set in a target flags value.
pub fn insert(&mut self, other: PlayerFeatureBitsExt)
pub fn insert(&mut self, other: PlayerFeatureBitsExt)
The bitwise or (|
) of the bits in two flags values.
pub fn remove(&mut self, other: PlayerFeatureBitsExt)
pub fn remove(&mut self, other: PlayerFeatureBitsExt)
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.
remove
won’t truncate other
, but the !
operator will.
pub fn toggle(&mut self, other: PlayerFeatureBitsExt)
pub fn toggle(&mut self, other: PlayerFeatureBitsExt)
The bitwise exclusive-or (^
) of the bits in two flags values.
pub fn set(&mut self, other: PlayerFeatureBitsExt, value: bool)
pub fn set(&mut self, other: PlayerFeatureBitsExt, value: bool)
Call insert
when value
is true
or remove
when value
is false
.
pub const fn intersection(
self,
other: PlayerFeatureBitsExt,
) -> PlayerFeatureBitsExt
pub const fn intersection( self, other: PlayerFeatureBitsExt, ) -> PlayerFeatureBitsExt
The bitwise and (&
) of the bits in two flags values.
pub const fn union(self, other: PlayerFeatureBitsExt) -> PlayerFeatureBitsExt
pub const fn union(self, other: PlayerFeatureBitsExt) -> PlayerFeatureBitsExt
The bitwise or (|
) of the bits in two flags values.
pub const fn difference(
self,
other: PlayerFeatureBitsExt,
) -> PlayerFeatureBitsExt
pub const fn difference( self, other: PlayerFeatureBitsExt, ) -> PlayerFeatureBitsExt
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.
difference
won’t truncate other
, but the !
operator will.
pub const fn symmetric_difference(
self,
other: PlayerFeatureBitsExt,
) -> PlayerFeatureBitsExt
pub const fn symmetric_difference( self, other: PlayerFeatureBitsExt, ) -> PlayerFeatureBitsExt
The bitwise exclusive-or (^
) of the bits in two flags values.
pub const fn complement(self) -> PlayerFeatureBitsExt
pub const fn complement(self) -> PlayerFeatureBitsExt
The bitwise negation (!
) of the bits in a flags value, truncating the result.
§impl PlayerFeatureBitsExt
impl PlayerFeatureBitsExt
pub const fn iter(&self) -> Iter<PlayerFeatureBitsExt>
pub const fn iter(&self) -> Iter<PlayerFeatureBitsExt>
Yield a set of contained flags values.
Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.
pub const fn iter_names(&self) -> IterNames<PlayerFeatureBitsExt>
pub const fn iter_names(&self) -> IterNames<PlayerFeatureBitsExt>
Yield a set of contained named flags values.
This method is like iter
, except only yields bits in contained named flags.
Any unknown bits, or bits not corresponding to a contained flag will not be yielded.
§impl PlayerFeatureBitsExt
impl PlayerFeatureBitsExt
pub fn has_unknown_bits(&self) -> bool
has_unknown_bits
pub fn get_unknown_bits(&self) -> u64
get_unknown_bits
Trait Implementations§
§impl Binary for PlayerFeatureBitsExt
impl Binary for PlayerFeatureBitsExt
§impl BitAnd for PlayerFeatureBitsExt
impl BitAnd for PlayerFeatureBitsExt
§fn bitand(self, other: PlayerFeatureBitsExt) -> PlayerFeatureBitsExt
fn bitand(self, other: PlayerFeatureBitsExt) -> PlayerFeatureBitsExt
The bitwise and (&
) of the bits in two flags values.
§type Output = PlayerFeatureBitsExt
type Output = PlayerFeatureBitsExt
&
operator.§impl BitAndAssign for PlayerFeatureBitsExt
impl BitAndAssign for PlayerFeatureBitsExt
§fn bitand_assign(&mut self, other: PlayerFeatureBitsExt)
fn bitand_assign(&mut self, other: PlayerFeatureBitsExt)
The bitwise and (&
) of the bits in two flags values.
§impl BitOr for PlayerFeatureBitsExt
impl BitOr for PlayerFeatureBitsExt
§fn bitor(self, other: PlayerFeatureBitsExt) -> PlayerFeatureBitsExt
fn bitor(self, other: PlayerFeatureBitsExt) -> PlayerFeatureBitsExt
The bitwise or (|
) of the bits in two flags values.
§type Output = PlayerFeatureBitsExt
type Output = PlayerFeatureBitsExt
|
operator.§impl BitOrAssign for PlayerFeatureBitsExt
impl BitOrAssign for PlayerFeatureBitsExt
§fn bitor_assign(&mut self, other: PlayerFeatureBitsExt)
fn bitor_assign(&mut self, other: PlayerFeatureBitsExt)
The bitwise or (|
) of the bits in two flags values.
§impl BitXor for PlayerFeatureBitsExt
impl BitXor for PlayerFeatureBitsExt
§fn bitxor(self, other: PlayerFeatureBitsExt) -> PlayerFeatureBitsExt
fn bitxor(self, other: PlayerFeatureBitsExt) -> PlayerFeatureBitsExt
The bitwise exclusive-or (^
) of the bits in two flags values.
§type Output = PlayerFeatureBitsExt
type Output = PlayerFeatureBitsExt
^
operator.§impl BitXorAssign for PlayerFeatureBitsExt
impl BitXorAssign for PlayerFeatureBitsExt
§fn bitxor_assign(&mut self, other: PlayerFeatureBitsExt)
fn bitxor_assign(&mut self, other: PlayerFeatureBitsExt)
The bitwise exclusive-or (^
) of the bits in two flags values.
§impl Clone for PlayerFeatureBitsExt
impl Clone for PlayerFeatureBitsExt
§fn clone(&self) -> PlayerFeatureBitsExt
fn clone(&self) -> PlayerFeatureBitsExt
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for PlayerFeatureBitsExt
impl Debug for PlayerFeatureBitsExt
§impl<D> Decode<PlayerFeatureBitsExt, D> for PlayerFeatureBitsExtwhere
D: ResourceDialect,
impl<D> Decode<PlayerFeatureBitsExt, D> for PlayerFeatureBitsExtwhere
D: ResourceDialect,
§fn new_empty() -> PlayerFeatureBitsExt
fn new_empty() -> PlayerFeatureBitsExt
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl Default for PlayerFeatureBitsExt
impl Default for PlayerFeatureBitsExt
§fn default() -> PlayerFeatureBitsExt
fn default() -> PlayerFeatureBitsExt
§impl<D> Encode<PlayerFeatureBitsExt, D> for PlayerFeatureBitsExtwhere
D: ResourceDialect,
impl<D> Encode<PlayerFeatureBitsExt, D> for PlayerFeatureBitsExtwhere
D: ResourceDialect,
§impl Extend<PlayerFeatureBitsExt> for PlayerFeatureBitsExt
impl Extend<PlayerFeatureBitsExt> for PlayerFeatureBitsExt
§fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = PlayerFeatureBitsExt>,
fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = PlayerFeatureBitsExt>,
The bitwise or (|
) of the bits in each flags value.
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)§impl Flags for PlayerFeatureBitsExt
impl Flags for PlayerFeatureBitsExt
§const FLAGS: &'static [Flag<PlayerFeatureBitsExt>]
const FLAGS: &'static [Flag<PlayerFeatureBitsExt>]
§fn from_bits_retain(bits: u64) -> PlayerFeatureBitsExt
fn from_bits_retain(bits: u64) -> PlayerFeatureBitsExt
§fn contains_unknown_bits(&self) -> bool
fn contains_unknown_bits(&self) -> bool
true
if any unknown bits are set.§fn from_bits_truncate(bits: Self::Bits) -> Self
fn from_bits_truncate(bits: Self::Bits) -> Self
§fn from_name(name: &str) -> Option<Self>
fn from_name(name: &str) -> Option<Self>
§fn iter_names(&self) -> IterNames<Self>
fn iter_names(&self) -> IterNames<Self>
§fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
§fn contains(&self, other: Self) -> boolwhere
Self: Sized,
fn contains(&self, other: Self) -> boolwhere
Self: Sized,
§fn insert(&mut self, other: Self)where
Self: Sized,
fn insert(&mut self, other: Self)where
Self: Sized,
|
) of the bits in two flags values.§fn remove(&mut self, other: Self)where
Self: Sized,
fn remove(&mut self, other: Self)where
Self: Sized,
&!
). Read more§fn toggle(&mut self, other: Self)where
Self: Sized,
fn toggle(&mut self, other: Self)where
Self: Sized,
^
) of the bits in two flags values.§fn set(&mut self, other: Self, value: bool)where
Self: Sized,
fn set(&mut self, other: Self, value: bool)where
Self: Sized,
Flags::insert
] when value
is true
or [Flags::remove
] when value
is false
.§fn intersection(self, other: Self) -> Self
fn intersection(self, other: Self) -> Self
&
) of the bits in two flags values.§fn difference(self, other: Self) -> Self
fn difference(self, other: Self) -> Self
&!
). Read more§fn symmetric_difference(self, other: Self) -> Self
fn symmetric_difference(self, other: Self) -> Self
^
) of the bits in two flags values.§fn complement(self) -> Self
fn complement(self) -> Self
!
) of the bits in a flags value, truncating the result.§impl FromIterator<PlayerFeatureBitsExt> for PlayerFeatureBitsExt
impl FromIterator<PlayerFeatureBitsExt> for PlayerFeatureBitsExt
§fn from_iter<T>(iterator: T) -> PlayerFeatureBitsExtwhere
T: IntoIterator<Item = PlayerFeatureBitsExt>,
fn from_iter<T>(iterator: T) -> PlayerFeatureBitsExtwhere
T: IntoIterator<Item = PlayerFeatureBitsExt>,
The bitwise or (|
) of the bits in each flags value.
§impl Hash for PlayerFeatureBitsExt
impl Hash for PlayerFeatureBitsExt
§impl IntoIterator for PlayerFeatureBitsExt
impl IntoIterator for PlayerFeatureBitsExt
§type Item = PlayerFeatureBitsExt
type Item = PlayerFeatureBitsExt
§type IntoIter = Iter<PlayerFeatureBitsExt>
type IntoIter = Iter<PlayerFeatureBitsExt>
§fn into_iter(self) -> <PlayerFeatureBitsExt as IntoIterator>::IntoIter
fn into_iter(self) -> <PlayerFeatureBitsExt as IntoIterator>::IntoIter
§impl LowerHex for PlayerFeatureBitsExt
impl LowerHex for PlayerFeatureBitsExt
§impl Not for PlayerFeatureBitsExt
impl Not for PlayerFeatureBitsExt
§fn not(self) -> PlayerFeatureBitsExt
fn not(self) -> PlayerFeatureBitsExt
The bitwise negation (!
) of the bits in a flags value, truncating the result.
§type Output = PlayerFeatureBitsExt
type Output = PlayerFeatureBitsExt
!
operator.§impl Octal for PlayerFeatureBitsExt
impl Octal for PlayerFeatureBitsExt
§impl Ord for PlayerFeatureBitsExt
impl Ord for PlayerFeatureBitsExt
§fn cmp(&self, other: &PlayerFeatureBitsExt) -> Ordering
fn cmp(&self, other: &PlayerFeatureBitsExt) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
§impl PartialEq for PlayerFeatureBitsExt
impl PartialEq for PlayerFeatureBitsExt
§impl PartialOrd for PlayerFeatureBitsExt
impl PartialOrd for PlayerFeatureBitsExt
§impl Sub for PlayerFeatureBitsExt
impl Sub for PlayerFeatureBitsExt
§fn sub(self, other: PlayerFeatureBitsExt) -> PlayerFeatureBitsExt
fn sub(self, other: PlayerFeatureBitsExt) -> PlayerFeatureBitsExt
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.
difference
won’t truncate other
, but the !
operator will.
§type Output = PlayerFeatureBitsExt
type Output = PlayerFeatureBitsExt
-
operator.§impl SubAssign for PlayerFeatureBitsExt
impl SubAssign for PlayerFeatureBitsExt
§fn sub_assign(&mut self, other: PlayerFeatureBitsExt)
fn sub_assign(&mut self, other: PlayerFeatureBitsExt)
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.
difference
won’t truncate other
, but the !
operator will.
§impl TypeMarker for PlayerFeatureBitsExt
impl TypeMarker for PlayerFeatureBitsExt
§type Owned = PlayerFeatureBitsExt
type Owned = PlayerFeatureBitsExt
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.§impl UpperHex for PlayerFeatureBitsExt
impl UpperHex for PlayerFeatureBitsExt
§impl ValueTypeMarker for PlayerFeatureBitsExt
impl ValueTypeMarker for PlayerFeatureBitsExt
§type Borrowed<'a> = PlayerFeatureBitsExt
type Borrowed<'a> = PlayerFeatureBitsExt
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<PlayerFeatureBitsExt as TypeMarker>::Owned,
) -> <PlayerFeatureBitsExt as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<PlayerFeatureBitsExt as TypeMarker>::Owned, ) -> <PlayerFeatureBitsExt as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.