pub enum VectorError {
EmptyVectorError(String),
TryFromSliceError(String),
TryFromVecError(String),
ValueError(String),
}Expand description
Errors that occur while working with crate::types::vector::Vector
Variants§
EmptyVectorError(String)
Occurs when an operation that requires data in a crate::types::vector::Vector is
requested with an empty crate::types::vector::Vector
TryFromSliceError(String)
Occurs when there is invalid data during an attempt to convert
from slice data.
TryFromVecError(String)
Occurs when there is invalid data during an attempt to convert
from Vec data.
ValueError(String)
ValueError occurs when an invalid value is used in an operation
Trait Implementations§
Source§impl Debug for VectorError
impl Debug for VectorError
Auto Trait Implementations§
impl Freeze for VectorError
impl RefUnwindSafe for VectorError
impl Send for VectorError
impl Sync for VectorError
impl Unpin for VectorError
impl UnwindSafe for VectorError
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> 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