pub struct IsActionCam(/* private fields */);Expand description
Represents a bitfield.
Implementations§
Source§impl IsActionCam
impl IsActionCam
Sourcepub const IS_ACTION_CAMERA_BITS: u32 = 1u32
pub const IS_ACTION_CAMERA_BITS: u32 = 1u32
The number of bits IS_ACTION_CAMERA occupies in the bitfield.
Sourcepub const IS_ACTION_CAMERA_OFFSET: u32 = 0u32
pub const IS_ACTION_CAMERA_OFFSET: u32 = 0u32
The bitfield start bit of IS_ACTION_CAMERA.
Sourcepub const fn new_without_defaults() -> Self
pub const fn new_without_defaults() -> Self
Creates a new bitfield instance without setting any default values.
Sourcepub const fn from_bits_with_defaults(bits: u32) -> Self
pub const fn from_bits_with_defaults(bits: u32) -> Self
Creates a new bitfield instance from the given bits while respecting field default values.
Sourcepub const fn is_action_camera(&self) -> bool
pub const fn is_action_camera(&self) -> bool
Returns bit [0].
Sourcepub const fn set_is_action_camera(&mut self, bits: bool)
pub const fn set_is_action_camera(&mut self, bits: bool)
Sets bit [0].
Sourcepub const fn checked_set_is_action_camera(
&mut self,
bits: bool,
) -> Result<(), &'static str>
pub const fn checked_set_is_action_camera( &mut self, bits: bool, ) -> Result<(), &'static str>
Sets bit [0].
Sourcepub fn set_bits_with_defaults(&mut self, bits: u32)
pub fn set_bits_with_defaults(&mut self, bits: u32)
Sets the writable bits of the bitfield while respecting defaults.
Sourcepub fn clear_bits(&mut self)
pub fn clear_bits(&mut self)
Clears the writable bits of the bitfield.
Sourcepub fn clear_bits_with_defaults(&mut self)
pub fn clear_bits_with_defaults(&mut self)
Clears the writable bits of the bitfield.
Trait Implementations§
Source§impl Clone for IsActionCam
impl Clone for IsActionCam
Source§fn clone(&self) -> IsActionCam
fn clone(&self) -> IsActionCam
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IsActionCam
impl Debug for IsActionCam
Source§impl Default for IsActionCam
impl Default for IsActionCam
Source§impl<'de> Deserialize<'de> for IsActionCam
impl<'de> Deserialize<'de> for IsActionCam
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<IsActionCam> for u32
impl From<IsActionCam> for u32
Source§fn from(b: IsActionCam) -> u32
fn from(b: IsActionCam) -> u32
Converts to this type from the input type.
Source§impl From<u32> for IsActionCam
impl From<u32> for IsActionCam
Source§impl PartialEq for IsActionCam
impl PartialEq for IsActionCam
Source§impl Serialize for IsActionCam
impl Serialize for IsActionCam
impl Copy for IsActionCam
impl Eq for IsActionCam
impl StructuralPartialEq for IsActionCam
Auto Trait Implementations§
impl Freeze for IsActionCam
impl RefUnwindSafe for IsActionCam
impl Send for IsActionCam
impl Sync for IsActionCam
impl Unpin for IsActionCam
impl UnwindSafe for IsActionCam
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more