Enum llama_cpp_sys::ggml_opt_type
source · #[non_exhaustive]#[repr(u32)]pub enum ggml_opt_type {
GGML_OPT_TYPE_ADAM = 0,
GGML_OPT_TYPE_LBFGS = 1,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
source§impl Clone for ggml_opt_type
impl Clone for ggml_opt_type
source§fn clone(&self) -> ggml_opt_type
fn clone(&self) -> ggml_opt_type
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ggml_opt_type
impl Debug for ggml_opt_type
source§impl Hash for ggml_opt_type
impl Hash for ggml_opt_type
source§impl PartialEq for ggml_opt_type
impl PartialEq for ggml_opt_type
source§fn eq(&self, other: &ggml_opt_type) -> bool
fn eq(&self, other: &ggml_opt_type) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ggml_opt_type
impl Eq for ggml_opt_type
impl StructuralPartialEq for ggml_opt_type
Auto Trait Implementations§
impl Freeze for ggml_opt_type
impl RefUnwindSafe for ggml_opt_type
impl Send for ggml_opt_type
impl Sync for ggml_opt_type
impl Unpin for ggml_opt_type
impl UnwindSafe for ggml_opt_type
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