pub enum AddressTerm {
Fixed(u64),
Node(String),
Index {
node: String,
offset: IndexOffset,
},
}Expand description
One contribution to a register address.
Variants§
Fixed(u64)
<Address> — a literal offset.
Node(String)
<pAddress> — an offset read from another node at runtime.
Index
<pIndex> — an index read from another node, scaled by a stride.
Fields
§
offset: IndexOffsetStride each index step advances the address by.
Trait Implementations§
Source§impl Clone for AddressTerm
impl Clone for AddressTerm
Source§fn clone(&self) -> AddressTerm
fn clone(&self) -> AddressTerm
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 moreSource§impl Debug for AddressTerm
impl Debug for AddressTerm
Source§impl<'de> Deserialize<'de> for AddressTerm
impl<'de> Deserialize<'de> for AddressTerm
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AddressTerm
impl PartialEq for AddressTerm
Source§fn eq(&self, other: &AddressTerm) -> bool
fn eq(&self, other: &AddressTerm) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AddressTerm
impl Serialize for AddressTerm
impl Eq for AddressTerm
impl StructuralPartialEq for AddressTerm
Auto Trait Implementations§
impl Freeze for AddressTerm
impl RefUnwindSafe for AddressTerm
impl Send for AddressTerm
impl Sync for AddressTerm
impl Unpin for AddressTerm
impl UnsafeUnpin for AddressTerm
impl UnwindSafe for AddressTerm
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.