#[repr(u32)]pub enum llama_rs_sampler_init_status {
LLAMA_RS_SAMPLER_INIT_OK = 0,
LLAMA_RS_SAMPLER_INIT_LLAMA_CPP_RETURNED_NULL = 1,
LLAMA_RS_SAMPLER_INIT_ERROR_STRING_ALLOCATION_FAILED = 2,
LLAMA_RS_SAMPLER_INIT_LLAMA_CPP_OUT_OF_MEMORY = 3,
LLAMA_RS_SAMPLER_INIT_LLAMA_CPP_THREW_CXX_EXCEPTION = 4,
}Variants§
LLAMA_RS_SAMPLER_INIT_OK = 0
LLAMA_RS_SAMPLER_INIT_LLAMA_CPP_RETURNED_NULL = 1
LLAMA_RS_SAMPLER_INIT_ERROR_STRING_ALLOCATION_FAILED = 2
LLAMA_RS_SAMPLER_INIT_LLAMA_CPP_OUT_OF_MEMORY = 3
LLAMA_RS_SAMPLER_INIT_LLAMA_CPP_THREW_CXX_EXCEPTION = 4
Trait Implementations§
Source§impl Clone for llama_rs_sampler_init_status
impl Clone for llama_rs_sampler_init_status
impl Copy for llama_rs_sampler_init_status
Source§impl Debug for llama_rs_sampler_init_status
impl Debug for llama_rs_sampler_init_status
impl Eq for llama_rs_sampler_init_status
Source§impl Hash for llama_rs_sampler_init_status
impl Hash for llama_rs_sampler_init_status
impl StructuralPartialEq for llama_rs_sampler_init_status
Auto Trait Implementations§
impl Forget for llama_rs_sampler_init_status
impl Freeze for llama_rs_sampler_init_status
impl Move for llama_rs_sampler_init_status
impl RefUnwindSafe for llama_rs_sampler_init_status
impl Send for llama_rs_sampler_init_status
impl Sync for llama_rs_sampler_init_status
impl Unpin for llama_rs_sampler_init_status
impl UnsafeUnpin for llama_rs_sampler_init_status
impl UnwindSafe for llama_rs_sampler_init_status
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