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