pub struct KvOverrides<'model_params> { /* private fields */ }Expand description
A struct implementing IntoIterator over the key-value overrides for a model.
Implementations§
Source§impl KvOverrides<'_>
impl KvOverrides<'_>
Sourcepub const fn new(model_params: &LlamaModelParams) -> KvOverrides<'_>
pub const fn new(model_params: &LlamaModelParams) -> KvOverrides<'_>
Creates a new KvOverrides view over the given model parameters.
Trait Implementations§
Source§impl<'model_params> Debug for KvOverrides<'model_params>
impl<'model_params> Debug for KvOverrides<'model_params>
Source§impl<'model_params> IntoIterator for KvOverrides<'model_params>
impl<'model_params> IntoIterator for KvOverrides<'model_params>
Auto Trait Implementations§
impl<'model_params> Freeze for KvOverrides<'model_params>
impl<'model_params> RefUnwindSafe for KvOverrides<'model_params>
impl<'model_params> !Send for KvOverrides<'model_params>
impl<'model_params> !Sync for KvOverrides<'model_params>
impl<'model_params> Unpin for KvOverrides<'model_params>
impl<'model_params> UnsafeUnpin for KvOverrides<'model_params>
impl<'model_params> UnwindSafe for KvOverrides<'model_params>
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