pub struct OutOfBounds { /* private fields */ }Expand description
An error that occurs when trying to read or write a value at an offset that is out of bounds for the buffer.
Implementations§
Trait Implementations§
Source§impl Clone for OutOfBounds
impl Clone for OutOfBounds
Source§fn clone(&self) -> OutOfBounds
fn clone(&self) -> OutOfBounds
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 OutOfBounds
impl Debug for OutOfBounds
Source§impl Display for OutOfBounds
impl Display for OutOfBounds
Source§impl Error for OutOfBounds
impl Error for OutOfBounds
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 From<OutOfBounds> for Error
impl From<OutOfBounds> for Error
Source§fn from(e: OutOfBounds) -> Self
fn from(e: OutOfBounds) -> Self
Converts to this type from the input type.
Source§impl From<OutOfBounds> for TryWriteAtError
impl From<OutOfBounds> for TryWriteAtError
Source§fn from(source: OutOfBounds) -> Self
fn from(source: OutOfBounds) -> Self
Converts to this type from the input type.
Source§impl From<OutOfBounds> for WriteVarintAtError
impl From<OutOfBounds> for WriteVarintAtError
Source§fn from(source: OutOfBounds) -> Self
fn from(source: OutOfBounds) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OutOfBounds
impl PartialEq for OutOfBounds
impl Copy for OutOfBounds
impl Eq for OutOfBounds
impl StructuralPartialEq for OutOfBounds
Auto Trait Implementations§
impl Freeze for OutOfBounds
impl RefUnwindSafe for OutOfBounds
impl Send for OutOfBounds
impl Sync for OutOfBounds
impl Unpin for OutOfBounds
impl UnwindSafe for OutOfBounds
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