pub struct RegisterId(/* private fields */);Expand description
A stable identifier for a Register.
Implementations§
Source§impl RegisterId
impl RegisterId
Sourcepub const fn new(id: usize) -> RegisterId
pub const fn new(id: usize) -> RegisterId
Creates an identifier from its index.
Trait Implementations§
Source§impl Clone for RegisterId
impl Clone for RegisterId
Source§fn clone(&self) -> RegisterId
fn clone(&self) -> RegisterId
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 RegisterId
Source§impl Debug for RegisterId
impl Debug for RegisterId
Source§impl Default for RegisterId
impl Default for RegisterId
Source§fn default() -> RegisterId
fn default() -> RegisterId
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RegisterId
impl<'de> Deserialize<'de> for RegisterId
Source§fn deserialize<D>(
deserializer: D,
) -> Result<RegisterId, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<RegisterId, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for RegisterId
impl Display for RegisterId
impl Eq for RegisterId
Source§impl From<usize> for RegisterId
impl From<usize> for RegisterId
Source§fn from(value: usize) -> RegisterId
fn from(value: usize) -> RegisterId
Converts to this type from the input type.
Source§impl Hash for RegisterId
impl Hash for RegisterId
impl Identifier for RegisterId
Source§impl Ord for RegisterId
impl Ord for RegisterId
Source§fn cmp(&self, other: &RegisterId) -> Ordering
fn cmp(&self, other: &RegisterId) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for RegisterId
impl PartialEq for RegisterId
Source§impl PartialOrd for RegisterId
impl PartialOrd for RegisterId
Source§impl Serialize for RegisterId
impl Serialize for RegisterId
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for RegisterId
impl RefUnwindSafe for RegisterId
impl Send for RegisterId
impl Sync for RegisterId
impl Unpin for RegisterId
impl UnsafeUnpin for RegisterId
impl UnwindSafe for RegisterId
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