pub struct StdId { /* private fields */ }
Implementations§
Source§impl StdId
impl StdId
pub const PalB: StdId
pub const PalB1: StdId
pub const PalG: StdId
pub const PalH: StdId
pub const PalI: StdId
pub const PalD: StdId
pub const PalD1: StdId
pub const PalK: StdId
pub const PalM: StdId
pub const PalN: StdId
pub const PalNc: StdId
pub const Pal60: StdId
pub const Ntsc443: StdId
pub const SecamB: StdId
pub const SecamD: StdId
pub const SecamG: StdId
pub const SecamH: StdId
pub const SecamK: StdId
pub const SecamK1: StdId
pub const SecamL: StdId
pub const SecamLc: StdId
pub const Atsc8Vsb: StdId
pub const Atsc16Vsb: StdId
pub const Ntsc: StdId
pub const SecamDk: StdId
pub const Secam: StdId
pub const PalBg: StdId
pub const PalDk: StdId
pub const Pal: StdId
pub const B: StdId
pub const G: StdId
pub const H: StdId
pub const L: StdId
pub const Gh: StdId
pub const Dk: StdId
pub const Bg: StdId
pub const Mn: StdId
pub const Mts: StdId
pub const S52560: StdId
pub const S62550: StdId
pub const Atsc: StdId
pub const Unknown: StdId
pub const All: StdId
Sourcepub const fn all_bits() -> Self
pub const fn all_bits() -> Self
Returns a bitmask that contains all values.
This will include bits that do not have any flags.
Use ::all_flags()
if you only want to use flags.
Sourcepub const fn is_all_bits(&self) -> bool
pub const fn is_all_bits(&self) -> bool
Returns true
if the bitmask contains all values.
This will check for bits == !0
,
use .is_all_flags()
if you only want to check for all flags
Sourcepub const fn is_all_flags(&self) -> bool
pub const fn is_all_flags(&self) -> bool
Returns true
if the bitmask contains all flags.
This will fail if any unused bit is set,
consider using .truncate()
first.
Sourcepub const fn all() -> Self
👎Deprecated: Please use the ::all_bits()
constructor
pub const fn all() -> Self
::all_bits()
constructorReturns a bitmask that contains all values.
This will include bits that do not have any flags.
Use ::all_flags()
if you only want to use flags.
Sourcepub const fn is_all(&self) -> bool
👎Deprecated: Please use the .is_all_bits()
method
pub const fn is_all(&self) -> bool
.is_all_bits()
methodReturns true
if the bitmask contains all values.
This will check for bits == !0
,
use .is_all_flags()
if you only want to check for all flags
Sourcepub const fn full() -> Self
👎Deprecated: Please use the ::all_flags()
constructor
pub const fn full() -> Self
::all_flags()
constructorReturns a bitmask that contains all flags.
Sourcepub const fn is_full(&self) -> bool
👎Deprecated: Please use the .is_all_flags()
method
pub const fn is_full(&self) -> bool
.is_all_flags()
methodReturns true
if the bitmask contains all flags.
This will fail if any unused bit is set,
consider using .truncate()
first.
Sourcepub const fn truncate(&self) -> Self
pub const fn truncate(&self) -> Self
Returns a bitmask that only has bits corresponding to flags
Sourcepub const fn intersects(&self, other: Self) -> bool
pub const fn intersects(&self, other: Self) -> bool
Returns true
if self
intersects with any value in other
,
or if other
does not contain any values.
This is equivalent to (self & other) != 0 || other == 0
.
Trait Implementations§
Source§impl BitAndAssign for StdId
impl BitAndAssign for StdId
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moreSource§impl BitOrAssign for StdId
impl BitOrAssign for StdId
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moreSource§impl BitXorAssign for StdId
impl BitXorAssign for StdId
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read more