pub(crate) struct ArrayAddress(MemoryAddress);Expand description
Wrapper for array addresses, with convenience methods for various offsets.
The array consists of a ref-count followed by a number of items according the size indicated by the type.
Tuple Fields§
§0: MemoryAddressImplementations§
Source§impl ArrayAddress
impl ArrayAddress
Sourcepub(crate) fn items_start(&self) -> MemoryAddress
pub(crate) fn items_start(&self) -> MemoryAddress
The start of the items, after the meta-data.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ArrayAddress
impl RefUnwindSafe for ArrayAddress
impl Send for ArrayAddress
impl Sync for ArrayAddress
impl Unpin for ArrayAddress
impl UnwindSafe for ArrayAddress
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> 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