pub enum StrListValidationError {
BoundaryOutOfRange {
index: usize,
value: u32,
data_len: usize,
},
BoundaryNotMonotonic {
index: usize,
prev: u32,
current: u32,
},
InvalidUtf8 {
index: usize,
start: u32,
end: u32,
},
}Expand description
Error returned by StrListRef::new when the input data/ends are invalid.
Variants§
BoundaryOutOfRange
A boundary value exceeds the data length.
BoundaryNotMonotonic
Boundary values are not monotonically non-decreasing.
InvalidUtf8
A segment between two boundaries is not valid UTF-8.
Trait Implementations§
Source§impl Clone for StrListValidationError
impl Clone for StrListValidationError
Source§fn clone(&self) -> StrListValidationError
fn clone(&self) -> StrListValidationError
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 StrListValidationError
impl Debug for StrListValidationError
Auto Trait Implementations§
impl Freeze for StrListValidationError
impl RefUnwindSafe for StrListValidationError
impl Send for StrListValidationError
impl Sync for StrListValidationError
impl Unpin for StrListValidationError
impl UnsafeUnpin for StrListValidationError
impl UnwindSafe for StrListValidationError
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