pub struct GgufCompilePlan<'work> { /* private fields */ }Expand description
Immutable prepared metadata and borrowed source payloads. Vec-backed caller storage may be allocated once and written repeatedly without allocation. While this plan or retained descriptors borrow names, their backing order storage cannot be rebound. Dynamic scratch rebinding is not promised.
Implementations§
Source§impl GgufCompilePlan<'_>
impl GgufCompilePlan<'_>
pub fn output_len(&self) -> usize
Sourcepub fn write_into(&self, output: &mut [u8]) -> Result<usize, GgufCompileError>
pub fn write_into(&self, output: &mut [u8]) -> Result<usize, GgufCompileError>
Writes the planned prefix, preserving the tail and all bytes on refusal.
Auto Trait Implementations§
impl<'work> Freeze for GgufCompilePlan<'work>
impl<'work> RefUnwindSafe for GgufCompilePlan<'work>
impl<'work> Send for GgufCompilePlan<'work>
impl<'work> Sync for GgufCompilePlan<'work>
impl<'work> Unpin for GgufCompilePlan<'work>
impl<'work> UnsafeUnpin for GgufCompilePlan<'work>
impl<'work> UnwindSafe for GgufCompilePlan<'work>
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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