Enum llama_cpp_2::llama_batch::BatchAddError
source · pub enum BatchAddError {
InsufficientSpace(usize),
}
Expand description
Errors that can occur when adding a token to a batch.
Variants§
Trait Implementations§
source§impl Debug for BatchAddError
impl Debug for BatchAddError
source§impl Display for BatchAddError
impl Display for BatchAddError
source§impl Error for BatchAddError
impl Error for BatchAddError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<BatchAddError> for LLamaCppError
impl From<BatchAddError> for LLamaCppError
source§fn from(source: BatchAddError) -> Self
fn from(source: BatchAddError) -> Self
Converts to this type from the input type.
source§impl PartialEq for BatchAddError
impl PartialEq for BatchAddError
source§fn eq(&self, other: &BatchAddError) -> bool
fn eq(&self, other: &BatchAddError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for BatchAddError
impl StructuralPartialEq for BatchAddError
Auto Trait Implementations§
impl RefUnwindSafe for BatchAddError
impl Send for BatchAddError
impl Sync for BatchAddError
impl Unpin for BatchAddError
impl UnwindSafe for BatchAddError
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