#[repr(C)]pub struct Volatile<T>(/* private fields */);
Expand description
Helper newtype representing volatile values (anything that may be modified by hardware or an interrupt service routine.)
Implementations§
Trait Implementations§
source§impl AddAssign<u16> for Volatile<u16>
impl AddAssign<u16> for Volatile<u16>
source§fn add_assign(&mut self, rhs: u16)
fn add_assign(&mut self, rhs: u16)
Performs the
+=
operation. Read moresource§impl AddAssign<u32> for Volatile<u32>
impl AddAssign<u32> for Volatile<u32>
source§fn add_assign(&mut self, rhs: u32)
fn add_assign(&mut self, rhs: u32)
Performs the
+=
operation. Read moresource§impl AddAssign<u8> for Volatile<u8>
impl AddAssign<u8> for Volatile<u8>
source§fn add_assign(&mut self, rhs: u8)
fn add_assign(&mut self, rhs: u8)
Performs the
+=
operation. Read moresource§impl AddAssign<usize> for Volatile<usize>
impl AddAssign<usize> for Volatile<usize>
source§fn add_assign(&mut self, rhs: usize)
fn add_assign(&mut self, rhs: usize)
Performs the
+=
operation. Read moresource§impl BitAndAssign<u16> for Volatile<u16>
impl BitAndAssign<u16> for Volatile<u16>
source§fn bitand_assign(&mut self, rhs: u16)
fn bitand_assign(&mut self, rhs: u16)
Performs the
&=
operation. Read moresource§impl BitAndAssign<u32> for Volatile<u32>
impl BitAndAssign<u32> for Volatile<u32>
source§fn bitand_assign(&mut self, rhs: u32)
fn bitand_assign(&mut self, rhs: u32)
Performs the
&=
operation. Read moresource§impl BitAndAssign<u8> for Volatile<u8>
impl BitAndAssign<u8> for Volatile<u8>
source§fn bitand_assign(&mut self, rhs: u8)
fn bitand_assign(&mut self, rhs: u8)
Performs the
&=
operation. Read moresource§impl BitAndAssign<usize> for Volatile<usize>
impl BitAndAssign<usize> for Volatile<usize>
source§fn bitand_assign(&mut self, rhs: usize)
fn bitand_assign(&mut self, rhs: usize)
Performs the
&=
operation. Read moresource§impl BitOrAssign<u16> for Volatile<u16>
impl BitOrAssign<u16> for Volatile<u16>
source§fn bitor_assign(&mut self, rhs: u16)
fn bitor_assign(&mut self, rhs: u16)
Performs the
|=
operation. Read moresource§impl BitOrAssign<u32> for Volatile<u32>
impl BitOrAssign<u32> for Volatile<u32>
source§fn bitor_assign(&mut self, rhs: u32)
fn bitor_assign(&mut self, rhs: u32)
Performs the
|=
operation. Read moresource§impl BitOrAssign<u8> for Volatile<u8>
impl BitOrAssign<u8> for Volatile<u8>
source§fn bitor_assign(&mut self, rhs: u8)
fn bitor_assign(&mut self, rhs: u8)
Performs the
|=
operation. Read moresource§impl BitOrAssign<usize> for Volatile<usize>
impl BitOrAssign<usize> for Volatile<usize>
source§fn bitor_assign(&mut self, rhs: usize)
fn bitor_assign(&mut self, rhs: usize)
Performs the
|=
operation. Read moresource§impl BitXorAssign<u16> for Volatile<u16>
impl BitXorAssign<u16> for Volatile<u16>
source§fn bitxor_assign(&mut self, rhs: u16)
fn bitxor_assign(&mut self, rhs: u16)
Performs the
^=
operation. Read moresource§impl BitXorAssign<u32> for Volatile<u32>
impl BitXorAssign<u32> for Volatile<u32>
source§fn bitxor_assign(&mut self, rhs: u32)
fn bitxor_assign(&mut self, rhs: u32)
Performs the
^=
operation. Read moresource§impl BitXorAssign<u8> for Volatile<u8>
impl BitXorAssign<u8> for Volatile<u8>
source§fn bitxor_assign(&mut self, rhs: u8)
fn bitxor_assign(&mut self, rhs: u8)
Performs the
^=
operation. Read moresource§impl BitXorAssign<usize> for Volatile<usize>
impl BitXorAssign<usize> for Volatile<usize>
source§fn bitxor_assign(&mut self, rhs: usize)
fn bitxor_assign(&mut self, rhs: usize)
Performs the
^=
operation. Read moresource§impl BoundedIncDec for Volatile<u8>
impl BoundedIncDec for Volatile<u8>
source§impl PartialEq<usize> for Volatile<usize>
impl PartialEq<usize> for Volatile<usize>
source§impl PartialEq for Volatile<u16>
impl PartialEq for Volatile<u16>
source§impl PartialEq for Volatile<u32>
impl PartialEq for Volatile<u32>
source§impl PartialEq for Volatile<u8>
impl PartialEq for Volatile<u8>
source§impl PartialEq for Volatile<usize>
impl PartialEq for Volatile<usize>
source§impl SubAssign<u16> for Volatile<u16>
impl SubAssign<u16> for Volatile<u16>
source§fn sub_assign(&mut self, rhs: u16)
fn sub_assign(&mut self, rhs: u16)
Performs the
-=
operation. Read moresource§impl SubAssign<u32> for Volatile<u32>
impl SubAssign<u32> for Volatile<u32>
source§fn sub_assign(&mut self, rhs: u32)
fn sub_assign(&mut self, rhs: u32)
Performs the
-=
operation. Read moreAuto Trait Implementations§
impl<T> Freeze for Volatile<T>where
T: Freeze,
impl<T> RefUnwindSafe for Volatile<T>where
T: RefUnwindSafe,
impl<T> Send for Volatile<T>where
T: Send,
impl<T> Sync for Volatile<T>where
T: Sync,
impl<T> Unpin for Volatile<T>where
T: Unpin,
impl<T> UnwindSafe for Volatile<T>where
T: UnwindSafe,
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