pub enum IntVecError {
Io(Error),
Bitstream(Box<dyn Error + Send + Sync>),
InvalidParameters(String),
CodecDispatch(String),
IndexOutOfBounds(usize),
}
Expand description
Defines the set of errors that can occur in IntVec
operations.
Variants§
Io(Error)
An error occurred during an I/O operation, typically forwarded from the underlying bitstream library.
Bitstream(Box<dyn Error + Send + Sync>)
A generic error originating from the dsi-bitstream
library.
InvalidParameters(String)
An error indicating that the provided parameters are invalid for the
requested operation, such as a sampling rate of 0
or an impossible
codec configuration.
CodecDispatch(String)
An error during the dispatch of a compression or decompression function, usually because a codec is not supported by the dispatcher.
IndexOutOfBounds(usize)
An error indicating that a requested index is outside the valid bounds of the vector.
Trait Implementations§
Source§impl Debug for IntVecError
impl Debug for IntVecError
Source§impl Display for IntVecError
impl Display for IntVecError
Source§impl Error for IntVecError
impl Error for IntVecError
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<Error> for IntVecError
impl From<Error> for IntVecError
Source§impl From<Infallible> for IntVecError
impl From<Infallible> for IntVecError
Source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IntVecError
impl !RefUnwindSafe for IntVecError
impl Send for IntVecError
impl Sync for IntVecError
impl Unpin for IntVecError
impl !UnwindSafe for IntVecError
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, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
Source§impl<T> DowncastableFrom<T> for T
impl<T> DowncastableFrom<T> for T
Source§fn downcast_from(value: T) -> T
fn downcast_from(value: T) -> T
Truncate the current UnsignedInt to a possibly smaller size
Source§impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> UpcastableFrom<T> for T
impl<T> UpcastableFrom<T> for T
Source§fn upcast_from(value: T) -> T
fn upcast_from(value: T) -> T
Extend the current UnsignedInt to a possibly bigger size.