pub struct ContinuousGrid<'a> { /* private fields */ }Expand description
Zero-copy continuous data grid view.
Takes a raw byte slice from the Host OS (mmap or io_uring buffer) and provides a safe, aligned view as an f64 slice for numerical processing.
Implementations§
Source§impl<'a> ContinuousGrid<'a>
impl<'a> ContinuousGrid<'a>
Sourcepub fn new(raw_slice: &'a [u8], points: usize) -> Result<Self, AlignmentError>
pub fn new(raw_slice: &'a [u8], points: usize) -> Result<Self, AlignmentError>
Creates a new continuous grid from a raw byte slice.
§Safety
This function validates that the raw slice is properly aligned to 8-byte boundaries before casting to f64. It returns an error if alignment is invalid.
Sourcepub fn resume_from_quin(
raw_slice: &'a [u8],
quin: &NQuin,
) -> Result<(Self, usize), CalculusError>
pub fn resume_from_quin( raw_slice: &'a [u8], quin: &NQuin, ) -> Result<(Self, usize), CalculusError>
Resumes integration from a suspended Quin state.
Extracts the byte offset from the Quin’s object field and validates that it is 8-byte aligned before creating the grid view.
Auto Trait Implementations§
impl<'a> Freeze for ContinuousGrid<'a>
impl<'a> RefUnwindSafe for ContinuousGrid<'a>
impl<'a> Send for ContinuousGrid<'a>
impl<'a> Sync for ContinuousGrid<'a>
impl<'a> Unpin for ContinuousGrid<'a>
impl<'a> UnsafeUnpin for ContinuousGrid<'a>
impl<'a> UnwindSafe for ContinuousGrid<'a>
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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