pub enum StringTapeError {
OffsetOverflow,
AllocationError,
IndexOutOfBounds,
Utf8Error(Utf8Error),
}Expand description
Errors that can occur when working with tape classes.
Variants§
OffsetOverflow
The string data size exceeds the maximum value representable by the offset type.
This can happen when using 32-bit offsets (CharsTapeI32) and the total data
exceeds 2GB, or when memory allocation fails.
AllocationError
Memory allocation failed.
IndexOutOfBounds
Index is out of bounds for the current number of strings.
Utf8Error(Utf8Error)
Invalid UTF-8 sequence encountered.
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
impl Error for StringTapeError
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