pub struct IldaPlaybackFlags { /* private fields */ }Expand description
If the data source is ILDA playback via SD, the following flags are used.
Implementations§
Source§impl IldaPlaybackFlags
impl IldaPlaybackFlags
pub const PLAYING: IldaPlaybackFlags
pub const REPEAT: IldaPlaybackFlags
Sourcepub const fn empty() -> IldaPlaybackFlags
pub const fn empty() -> IldaPlaybackFlags
Returns an empty set of flags
Sourcepub const fn all() -> IldaPlaybackFlags
pub const fn all() -> IldaPlaybackFlags
Returns the set containing all flags.
Sourcepub fn from_bits(bits: u16) -> Option<IldaPlaybackFlags>
pub fn from_bits(bits: u16) -> Option<IldaPlaybackFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: u16) -> IldaPlaybackFlags
pub const fn from_bits_truncate(bits: u16) -> IldaPlaybackFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: u16) -> IldaPlaybackFlags
pub const unsafe fn from_bits_unchecked(bits: u16) -> IldaPlaybackFlags
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: IldaPlaybackFlags) -> bool
pub const fn intersects(&self, other: IldaPlaybackFlags) -> bool
Returns true if there are flags common to both self and other.
Sourcepub const fn contains(&self, other: IldaPlaybackFlags) -> bool
pub const fn contains(&self, other: IldaPlaybackFlags) -> bool
Returns true all of the flags in other are contained within self.
Sourcepub fn insert(&mut self, other: IldaPlaybackFlags)
pub fn insert(&mut self, other: IldaPlaybackFlags)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: IldaPlaybackFlags)
pub fn remove(&mut self, other: IldaPlaybackFlags)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: IldaPlaybackFlags)
pub fn toggle(&mut self, other: IldaPlaybackFlags)
Toggles the specified flags in-place.
Sourcepub fn set(&mut self, other: IldaPlaybackFlags, value: bool)
pub fn set(&mut self, other: IldaPlaybackFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations§
Source§impl Binary for IldaPlaybackFlags
impl Binary for IldaPlaybackFlags
Source§impl BitAnd for IldaPlaybackFlags
impl BitAnd for IldaPlaybackFlags
Source§fn bitand(self, other: IldaPlaybackFlags) -> IldaPlaybackFlags
fn bitand(self, other: IldaPlaybackFlags) -> IldaPlaybackFlags
Returns the intersection between the two sets of flags.
Source§type Output = IldaPlaybackFlags
type Output = IldaPlaybackFlags
& operator.Source§impl BitAndAssign for IldaPlaybackFlags
impl BitAndAssign for IldaPlaybackFlags
Source§fn bitand_assign(&mut self, other: IldaPlaybackFlags)
fn bitand_assign(&mut self, other: IldaPlaybackFlags)
Disables all flags disabled in the set.
Source§impl BitOr for IldaPlaybackFlags
impl BitOr for IldaPlaybackFlags
Source§fn bitor(self, other: IldaPlaybackFlags) -> IldaPlaybackFlags
fn bitor(self, other: IldaPlaybackFlags) -> IldaPlaybackFlags
Returns the union of the two sets of flags.
Source§type Output = IldaPlaybackFlags
type Output = IldaPlaybackFlags
| operator.Source§impl BitOrAssign for IldaPlaybackFlags
impl BitOrAssign for IldaPlaybackFlags
Source§fn bitor_assign(&mut self, other: IldaPlaybackFlags)
fn bitor_assign(&mut self, other: IldaPlaybackFlags)
Adds the set of flags.
Source§impl BitXor for IldaPlaybackFlags
impl BitXor for IldaPlaybackFlags
Source§fn bitxor(self, other: IldaPlaybackFlags) -> IldaPlaybackFlags
fn bitxor(self, other: IldaPlaybackFlags) -> IldaPlaybackFlags
Returns the left flags, but with all the right flags toggled.
Source§type Output = IldaPlaybackFlags
type Output = IldaPlaybackFlags
^ operator.Source§impl BitXorAssign for IldaPlaybackFlags
impl BitXorAssign for IldaPlaybackFlags
Source§fn bitxor_assign(&mut self, other: IldaPlaybackFlags)
fn bitxor_assign(&mut self, other: IldaPlaybackFlags)
Toggles the set of flags.
Source§impl Clone for IldaPlaybackFlags
impl Clone for IldaPlaybackFlags
Source§fn clone(&self) -> IldaPlaybackFlags
fn clone(&self) -> IldaPlaybackFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IldaPlaybackFlags
impl Debug for IldaPlaybackFlags
Source§impl Extend<IldaPlaybackFlags> for IldaPlaybackFlags
impl Extend<IldaPlaybackFlags> for IldaPlaybackFlags
Source§fn extend<T: IntoIterator<Item = IldaPlaybackFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = IldaPlaybackFlags>>(&mut self, iterator: T)
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)Source§impl FromIterator<IldaPlaybackFlags> for IldaPlaybackFlags
impl FromIterator<IldaPlaybackFlags> for IldaPlaybackFlags
Source§fn from_iter<T: IntoIterator<Item = IldaPlaybackFlags>>(
iterator: T,
) -> IldaPlaybackFlags
fn from_iter<T: IntoIterator<Item = IldaPlaybackFlags>>( iterator: T, ) -> IldaPlaybackFlags
Source§impl Hash for IldaPlaybackFlags
impl Hash for IldaPlaybackFlags
Source§impl LowerHex for IldaPlaybackFlags
impl LowerHex for IldaPlaybackFlags
Source§impl Not for IldaPlaybackFlags
impl Not for IldaPlaybackFlags
Source§fn not(self) -> IldaPlaybackFlags
fn not(self) -> IldaPlaybackFlags
Returns the complement of this set of flags.
Source§type Output = IldaPlaybackFlags
type Output = IldaPlaybackFlags
! operator.Source§impl Octal for IldaPlaybackFlags
impl Octal for IldaPlaybackFlags
Source§impl Ord for IldaPlaybackFlags
impl Ord for IldaPlaybackFlags
Source§fn cmp(&self, other: &IldaPlaybackFlags) -> Ordering
fn cmp(&self, other: &IldaPlaybackFlags) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for IldaPlaybackFlags
impl PartialEq for IldaPlaybackFlags
Source§impl PartialOrd for IldaPlaybackFlags
impl PartialOrd for IldaPlaybackFlags
Source§impl Sub for IldaPlaybackFlags
impl Sub for IldaPlaybackFlags
Source§fn sub(self, other: IldaPlaybackFlags) -> IldaPlaybackFlags
fn sub(self, other: IldaPlaybackFlags) -> IldaPlaybackFlags
Returns the set difference of the two sets of flags.
Source§type Output = IldaPlaybackFlags
type Output = IldaPlaybackFlags
- operator.Source§impl SubAssign for IldaPlaybackFlags
impl SubAssign for IldaPlaybackFlags
Source§fn sub_assign(&mut self, other: IldaPlaybackFlags)
fn sub_assign(&mut self, other: IldaPlaybackFlags)
Disables all flags enabled in the set.