pub struct HeapArray {
pub pointer: MemoryAddress,
pub size: SemiFlattenedLength,
}Expand description
A fixed-sized array starting from a Brillig memory location.
Fields§
§pointer: MemoryAddressPointer to a memory address which hold the address to the start of the items in the array.
That is to say, the address retrieved from the pointer doesn’t need any more offsetting.
size: SemiFlattenedLengthStatically known size of the array.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HeapArray
impl<'de> Deserialize<'de> for HeapArray
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 MsgpackTagged for HeapArraywhere
MemoryAddress: MsgpackTagged,
SemiFlattenedLength: MsgpackTagged,
impl MsgpackTagged for HeapArraywhere
MemoryAddress: MsgpackTagged,
SemiFlattenedLength: MsgpackTagged,
Source§const TAGGED: Tagged
const TAGGED: Tagged
The wire shape of this type — either a [
Product] (struct/tuple
struct) or a [Sum] (enum). The derive macro emits this from
#[tag(N)] annotations; primitives and container types use a
Tagged::Product with empty fields, signalling they don’t appear
directly on the wire as a registry entry but still satisfy the bound.Source§fn register_into(_reg: &mut TagRegistry)
fn register_into(_reg: &mut TagRegistry)
Recursively register this type and every tagged field type into a registry. Read more
impl Copy for HeapArray
impl Eq for HeapArray
impl StructuralPartialEq for HeapArray
Auto Trait Implementations§
impl Freeze for HeapArray
impl RefUnwindSafe for HeapArray
impl Send for HeapArray
impl Sync for HeapArray
impl Unpin for HeapArray
impl UnwindSafe for HeapArray
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more