pub struct AllocatorError;Expand description
Indicate that an allocation error has occurred.
This type is limited in what it can contain because additional context inevitably requires more memory allocation, which is what we’re trying to avoid.
Trait Implementations§
Source§impl Clone for AllocatorError
impl Clone for AllocatorError
Source§fn clone(&self) -> AllocatorError
fn clone(&self) -> AllocatorError
Returns a duplicate 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 AllocatorError
impl Debug for AllocatorError
Source§impl Display for AllocatorError
impl Display for AllocatorError
Source§impl Error for AllocatorError
impl Error for AllocatorError
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<AllocatorError> for CompressionError
impl From<AllocatorError> for CompressionError
Source§fn from(source: AllocatorError) -> Self
fn from(source: AllocatorError) -> Self
Converts to this type from the input type.
Source§impl From<AllocatorError> for DeserializationError
impl From<AllocatorError> for DeserializationError
Source§fn from(source: AllocatorError) -> Self
fn from(source: AllocatorError) -> Self
Converts to this type from the input type.
Source§impl From<AllocatorError> for DistanceComputerError
impl From<AllocatorError> for DistanceComputerError
Source§fn from(source: AllocatorError) -> Self
fn from(source: AllocatorError) -> Self
Converts to this type from the input type.
Source§impl From<AllocatorError> for DoubleHadamardError
impl From<AllocatorError> for DoubleHadamardError
Source§fn from(source: AllocatorError) -> Self
fn from(source: AllocatorError) -> Self
Converts to this type from the input type.
Source§impl From<AllocatorError> for NewTransformError
impl From<AllocatorError> for NewTransformError
Source§fn from(source: AllocatorError) -> Self
fn from(source: AllocatorError) -> Self
Converts to this type from the input type.
Source§impl From<AllocatorError> for PaddingHadamardError
impl From<AllocatorError> for PaddingHadamardError
Source§fn from(source: AllocatorError) -> Self
fn from(source: AllocatorError) -> Self
Converts to this type from the input type.
Source§impl From<AllocatorError> for QueryCompressionError
impl From<AllocatorError> for QueryCompressionError
Source§fn from(source: AllocatorError) -> Self
fn from(source: AllocatorError) -> Self
Converts to this type from the input type.
Source§impl From<AllocatorError> for QueryComputerError
impl From<AllocatorError> for QueryComputerError
Source§fn from(source: AllocatorError) -> Self
fn from(source: AllocatorError) -> Self
Converts to this type from the input type.
Source§impl From<AllocatorError> for TrainError
impl From<AllocatorError> for TrainError
Source§fn from(source: AllocatorError) -> Self
fn from(source: AllocatorError) -> Self
Converts to this type from the input type.
Source§impl From<AllocatorError> for TransformFailed
impl From<AllocatorError> for TransformFailed
Source§fn from(source: AllocatorError) -> Self
fn from(source: AllocatorError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AllocatorError
impl PartialEq for AllocatorError
impl Copy for AllocatorError
impl Eq for AllocatorError
impl StructuralPartialEq for AllocatorError
Auto Trait Implementations§
impl Freeze for AllocatorError
impl RefUnwindSafe for AllocatorError
impl Send for AllocatorError
impl Sync for AllocatorError
impl Unpin for AllocatorError
impl UnwindSafe for AllocatorError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more