pub enum StringTapeError {
OffsetOverflow,
AllocationError,
IndexOutOfBounds,
Utf8Error(Utf8Error),
}Expand description
Errors that can occur when working with tape classes.
Variants§
OffsetOverflow
Data size exceeds offset type maximum (e.g., >2GB for 32-bit offsets).
AllocationError
Memory allocation failed.
IndexOutOfBounds
Index out of bounds.
Utf8Error(Utf8Error)
Invalid UTF-8 sequence.
Trait Implementations§
Source§impl Clone for StringTapeError
impl Clone for StringTapeError
Source§fn clone(&self) -> StringTapeError
fn clone(&self) -> StringTapeError
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 StringTapeError
impl Debug for StringTapeError
Source§impl Display for StringTapeError
impl Display for StringTapeError
Source§impl Error for StringTapeError
Available on crate feature std only.
impl Error for StringTapeError
Available on crate feature
std only.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 StringTapeError
impl PartialEq for StringTapeError
impl Eq for StringTapeError
impl StructuralPartialEq for StringTapeError
Auto Trait Implementations§
impl Freeze for StringTapeError
impl RefUnwindSafe for StringTapeError
impl Send for StringTapeError
impl Sync for StringTapeError
impl Unpin for StringTapeError
impl UnwindSafe for StringTapeError
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