#[repr(C)]pub struct ArrayInfo {
pub data_ptr: u64,
pub length: u64,
}Expand description
Extract array data pointer and length from a NaN-boxed array value.
Returns (data_ptr, length) packed into a #[repr(C)] struct.
With JitArray’s guaranteed layout, this can now be inlined by the JIT
as direct memory loads (offset 0 = data, offset 8 = len).
This FFI version is kept as a fallback for non-inlined paths.
Fields§
§data_ptr: u64§length: u64Auto Trait Implementations§
impl Freeze for ArrayInfo
impl RefUnwindSafe for ArrayInfo
impl Send for ArrayInfo
impl Sync for ArrayInfo
impl Unpin for ArrayInfo
impl UnsafeUnpin for ArrayInfo
impl UnwindSafe for ArrayInfo
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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