pub struct Index(/* private fields */);Expand description
Newtype for addressing a single register
Implementations§
Source§impl Index
impl Index
pub const fn new(value: IndexValue) -> Self
pub const fn to_value(self) -> IndexValue
Trait Implementations§
Source§impl From<Index> for IndexValue
impl From<Index> for IndexValue
Source§impl From<u64> for Index
impl From<u64> for Index
Source§fn from(from: IndexValue) -> Self
fn from(from: IndexValue) -> Self
Converts to this type from the input type.
Source§impl Ord for Index
impl Ord for Index
Source§impl PartialOrd for Index
impl PartialOrd for Index
impl Copy for Index
impl Eq for Index
impl StructuralPartialEq for Index
Auto Trait Implementations§
impl Freeze for Index
impl RefUnwindSafe for Index
impl Send for Index
impl Sync for Index
impl Unpin for Index
impl UnwindSafe for Index
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