pub struct TensorCallbackFailure { /* private fields */ }Expand description
Contained callback failure returned by crate::LlamaContext::decode.
Implementations§
Trait Implementations§
Source§impl Clone for TensorCallbackFailure
impl Clone for TensorCallbackFailure
Source§fn clone(&self) -> TensorCallbackFailure
fn clone(&self) -> TensorCallbackFailure
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TensorCallbackFailure
impl Debug for TensorCallbackFailure
Source§impl Display for TensorCallbackFailure
impl Display for TensorCallbackFailure
impl Eq for TensorCallbackFailure
Source§impl Error for TensorCallbackFailure
impl Error for TensorCallbackFailure
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<TensorCallbackFailure> for DecodeError
impl From<TensorCallbackFailure> for DecodeError
Source§fn from(source: TensorCallbackFailure) -> Self
fn from(source: TensorCallbackFailure) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TensorCallbackFailure
impl PartialEq for TensorCallbackFailure
impl StructuralPartialEq for TensorCallbackFailure
Auto Trait Implementations§
impl Freeze for TensorCallbackFailure
impl RefUnwindSafe for TensorCallbackFailure
impl Send for TensorCallbackFailure
impl Sync for TensorCallbackFailure
impl Unpin for TensorCallbackFailure
impl UnsafeUnpin for TensorCallbackFailure
impl UnwindSafe for TensorCallbackFailure
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