pub struct PeripheralIndex(/* private fields */);Expand description
Newtype proving a value is a valid peripheral index (0-16).
Can be constructed via PeripheralIndex::try_from(peripheral as usize).
Implementations§
Trait Implementations§
Source§impl Clone for PeripheralIndex
impl Clone for PeripheralIndex
Source§fn clone(&self) -> PeripheralIndex
fn clone(&self) -> PeripheralIndex
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PeripheralIndex
Source§impl Debug for PeripheralIndex
impl Debug for PeripheralIndex
Auto Trait Implementations§
impl Freeze for PeripheralIndex
impl RefUnwindSafe for PeripheralIndex
impl Send for PeripheralIndex
impl Sync for PeripheralIndex
impl Unpin for PeripheralIndex
impl UnsafeUnpin for PeripheralIndex
impl UnwindSafe for PeripheralIndex
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