Enum llama_cpp_sys::ggml_opt_result
source · #[non_exhaustive]#[repr(i32)]pub enum ggml_opt_result {
GGML_OPT_RESULT_OK = 0,
GGML_OPT_RESULT_DID_NOT_CONVERGE = 1,
GGML_OPT_RESULT_NO_CONTEXT = 2,
GGML_OPT_RESULT_INVALID_WOLFE = 3,
GGML_OPT_RESULT_FAIL = 4,
GGML_OPT_RESULT_CANCEL = 5,
GGML_LINESEARCH_FAIL = -128,
GGML_LINESEARCH_MINIMUM_STEP = -127,
GGML_LINESEARCH_MAXIMUM_STEP = -126,
GGML_LINESEARCH_MAXIMUM_ITERATIONS = -125,
GGML_LINESEARCH_INVALID_PARAMETERS = -124,
}
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.
GGML_OPT_RESULT_OK = 0
GGML_OPT_RESULT_DID_NOT_CONVERGE = 1
GGML_OPT_RESULT_NO_CONTEXT = 2
GGML_OPT_RESULT_INVALID_WOLFE = 3
GGML_OPT_RESULT_FAIL = 4
GGML_OPT_RESULT_CANCEL = 5
GGML_LINESEARCH_FAIL = -128
GGML_LINESEARCH_MINIMUM_STEP = -127
GGML_LINESEARCH_MAXIMUM_STEP = -126
GGML_LINESEARCH_MAXIMUM_ITERATIONS = -125
GGML_LINESEARCH_INVALID_PARAMETERS = -124
Trait Implementations§
source§impl Clone for ggml_opt_result
impl Clone for ggml_opt_result
source§fn clone(&self) -> ggml_opt_result
fn clone(&self) -> ggml_opt_result
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_result
impl Debug for ggml_opt_result
source§impl Hash for ggml_opt_result
impl Hash for ggml_opt_result
source§impl PartialEq for ggml_opt_result
impl PartialEq for ggml_opt_result
source§fn eq(&self, other: &ggml_opt_result) -> bool
fn eq(&self, other: &ggml_opt_result) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ggml_opt_result
impl Eq for ggml_opt_result
impl StructuralPartialEq for ggml_opt_result
Auto Trait Implementations§
impl Freeze for ggml_opt_result
impl RefUnwindSafe for ggml_opt_result
impl Send for ggml_opt_result
impl Sync for ggml_opt_result
impl Unpin for ggml_opt_result
impl UnwindSafe for ggml_opt_result
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