pub enum CursorError {
Eof,
OutOfBoundaries(usize),
}Expand description
Errors with cursor-based operations
Variants§
Eof
Attempt to read or write after end of data
OutOfBoundaries(usize)
Attempt to read or write at a position outside of data boundaries ({0})
Trait Implementations§
Source§impl Clone for CursorError
impl Clone for CursorError
Source§fn clone(&self) -> CursorError
fn clone(&self) -> CursorError
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 CursorError
impl Debug for CursorError
Source§impl Display for CursorError
impl Display for CursorError
Source§impl From<CursorError> for DecodeError
impl From<CursorError> for DecodeError
Source§fn from(v: CursorError) -> Self
fn from(v: CursorError) -> Self
Converts to this type from the input type.
Source§impl From<CursorError> for EncodeError
impl From<CursorError> for EncodeError
Source§fn from(v: CursorError) -> Self
fn from(v: CursorError) -> Self
Converts to this type from the input type.
Source§impl Hash for CursorError
impl Hash for CursorError
Source§impl Ord for CursorError
impl Ord for CursorError
Source§fn cmp(&self, other: &CursorError) -> Ordering
fn cmp(&self, other: &CursorError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CursorError
impl PartialEq for CursorError
Source§impl PartialOrd for CursorError
impl PartialOrd for CursorError
impl Copy for CursorError
impl Eq for CursorError
impl StructuralPartialEq for CursorError
Auto Trait Implementations§
impl Freeze for CursorError
impl RefUnwindSafe for CursorError
impl Send for CursorError
impl Sync for CursorError
impl Unpin for CursorError
impl UnwindSafe for CursorError
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