pub enum TransmuteError {
Alignment,
Length,
Capacity,
}Expand description
Error for Vec transmutes.
It will always be Alignment -> Length -> Capacity
Variants§
Alignment
When the alignment of vec is incorrect.
Length
When the length wouldn’t be able to fit.
Capacity
When the capacity wouldn’t be able to fit.
Trait Implementations§
Source§impl Debug for TransmuteError
impl Debug for TransmuteError
Source§impl Display for TransmuteError
impl Display for TransmuteError
Source§impl Error for TransmuteError
impl Error for TransmuteError
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 PartialEq for TransmuteError
impl PartialEq for TransmuteError
impl Eq for TransmuteError
impl StructuralPartialEq for TransmuteError
Auto Trait Implementations§
impl Freeze for TransmuteError
impl RefUnwindSafe for TransmuteError
impl Send for TransmuteError
impl Sync for TransmuteError
impl Unpin for TransmuteError
impl UnwindSafe for TransmuteError
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