pub struct IsActionCamBuilder { /* private fields */ }Expand description
A builder for the bitfield.
Implementations§
Source§impl IsActionCamBuilder
impl IsActionCamBuilder
Sourcepub fn new_without_defaults() -> Self
pub fn new_without_defaults() -> Self
Creates a new bitfield builder instance without setting any default values.
Sourcepub fn with_is_action_camera(self, bits: bool) -> Self
pub fn with_is_action_camera(self, bits: bool) -> Self
Sets builder bits [0..=1].
Sourcepub fn checked_with_is_action_camera(
self,
bits: bool,
) -> Result<Self, &'static str>
pub fn checked_with_is_action_camera( self, bits: bool, ) -> Result<Self, &'static str>
Sets builder bits [0..=1]. Returns an error if the value is too big to fit within the field bits.
Sourcepub fn build(self) -> IsActionCam
pub fn build(self) -> IsActionCam
Builds a bitfield instance from the builder.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IsActionCamBuilder
impl RefUnwindSafe for IsActionCamBuilder
impl Send for IsActionCamBuilder
impl Sync for IsActionCamBuilder
impl Unpin for IsActionCamBuilder
impl UnwindSafe for IsActionCamBuilder
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