#[repr(u8)]pub enum WriteOp {
Write,
Clear,
Set,
}
Expand description
Write
operation variants.
Variants§
Write
*address = value
— direct write
Clear
*address &= !value
— clear bits (read-modify-write)
Set
*address |= value
— set bits (read-modify-write)
Trait Implementations§
source§impl PartialEq<WriteOp> for WriteOp
impl PartialEq<WriteOp> for WriteOp
impl Copy for WriteOp
impl Eq for WriteOp
impl StructuralEq for WriteOp
impl StructuralPartialEq for WriteOp
Auto Trait Implementations§
impl RefUnwindSafe for WriteOp
impl Send for WriteOp
impl Sync for WriteOp
impl Unpin for WriteOp
impl UnwindSafe for WriteOp
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