pub struct RangeOutOfBounds {
pub start: usize,
pub end: usize,
pub available: usize,
}Expand description
Error type indicating an index or range is out of bounds.
Fields§
§start: usizeThe start index of the range
end: usizeThe end index of the requested range
available: usizeThe available length or capacity
Implementations§
Trait Implementations§
Source§impl Clone for RangeOutOfBounds
impl Clone for RangeOutOfBounds
impl Copy for RangeOutOfBounds
Source§impl Debug for RangeOutOfBounds
impl Debug for RangeOutOfBounds
Source§impl Display for RangeOutOfBounds
impl Display for RangeOutOfBounds
impl Eq for RangeOutOfBounds
Source§impl Error for RangeOutOfBounds
impl Error for RangeOutOfBounds
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<RangeOutOfBounds> for Error
Available on crate feature std only.
impl From<RangeOutOfBounds> for Error
Available on crate feature
std only.Source§fn from(value: RangeOutOfBounds) -> Self
fn from(value: RangeOutOfBounds) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RangeOutOfBounds
impl PartialEq for RangeOutOfBounds
impl StructuralPartialEq for RangeOutOfBounds
Auto Trait Implementations§
impl Freeze for RangeOutOfBounds
impl RefUnwindSafe for RangeOutOfBounds
impl Send for RangeOutOfBounds
impl Sync for RangeOutOfBounds
impl Unpin for RangeOutOfBounds
impl UnsafeUnpin for RangeOutOfBounds
impl UnwindSafe for RangeOutOfBounds
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToUtf8Bytes for T
impl<T> ToUtf8Bytes for T
Source§fn to_utf8bytes(&self) -> Utf8Bytes<Shared>
fn to_utf8bytes(&self) -> Utf8Bytes<Shared>
Available on crate features
alloc or std only.Source§fn to_compact_utf8bytes(&self) -> Utf8Bytes<Compact>
fn to_compact_utf8bytes(&self) -> Utf8Bytes<Compact>
Available on crate features
alloc or std only.