pub enum Register<N: Network> {
Locator(u64),
Access(u64, Vec<Access<N>>),
}
Expand description
A register contains the location data to a value in memory.
Variants§
Locator(u64)
A register contains its locator in memory.
Access(u64, Vec<Access<N>>)
A register access contains its locator and access(es) in memory.
Implementations§
Trait Implementations§
source§impl<'de, N: Network> Deserialize<'de> for Register<N>
impl<'de, N: Network> Deserialize<'de> for Register<N>
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserializes the register from a string or bytes.
source§impl<N: Network> Ord for Register<N>
impl<N: Network> Ord for Register<N>
source§fn cmp(&self, other: &Self) -> Ordering
fn cmp(&self, other: &Self) -> Ordering
Ordering is determined by the register locator (any accesses are ignored).
1.21.0 · 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
source§impl<N: Network> Parser for Register<N>
impl<N: Network> Parser for Register<N>
source§fn parse(string: &str) -> ParserResult<'_, Self>
fn parse(string: &str) -> ParserResult<'_, Self>
Parses a string into a register.
The register is of the form r{locator}
or r{locator}.{identifier}
.
source§impl<N: PartialEq + Network> PartialEq for Register<N>
impl<N: PartialEq + Network> PartialEq for Register<N>
source§impl<N: Network> PartialOrd for Register<N>
impl<N: Network> PartialOrd for Register<N>
source§fn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
Ordering is determined by the register locator (any accesses are ignored).
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<N: Eq + Network> Eq for Register<N>
impl<N: Network> StructuralEq for Register<N>
impl<N: Network> StructuralPartialEq for Register<N>
Auto Trait Implementations§
impl<N> RefUnwindSafe for Register<N>where N: RefUnwindSafe, <N as Environment>::Field: RefUnwindSafe,
impl<N> Send for Register<N>
impl<N> Sync for Register<N>
impl<N> Unpin for Register<N>where N: Unpin, <N as Environment>::Field: Unpin,
impl<N> UnwindSafe for Register<N>where N: UnwindSafe, <N as Environment>::Field: 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
source§impl<'de, T> DeserializeExt<'de> for Twhere
T: DeserializeOwned,
impl<'de, T> DeserializeExt<'de> for Twhere T: DeserializeOwned,
fn take_from_value<D>( value: &mut Value, field: &str ) -> Result<T, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.