pub 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: MemoryAddress
Implementations§
Source§impl ArrayAddress
impl ArrayAddress
pub fn items_start(&self) -> MemoryAddress
Trait Implementations§
Source§impl From<MemoryAddress> for ArrayAddress
impl From<MemoryAddress> for ArrayAddress
Source§fn from(value: MemoryAddress) -> Self
fn from(value: MemoryAddress) -> Self
Converts to this type from the input type.
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