pub struct IndexOutOfRange {
pub index: usize,
pub len: usize,
}Expand description
An object index that is not on the page.
Returned by Page::insert_object when index is past the end — an index
equal to the length appends and is valid.
Fields§
§index: usizeThe index that was asked for.
len: usizeHow many objects the page has.
Trait Implementations§
Source§impl Clone for IndexOutOfRange
impl Clone for IndexOutOfRange
Source§fn clone(&self) -> IndexOutOfRange
fn clone(&self) -> IndexOutOfRange
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IndexOutOfRange
Source§impl Debug for IndexOutOfRange
impl Debug for IndexOutOfRange
Source§impl Display for IndexOutOfRange
impl Display for IndexOutOfRange
impl Eq for IndexOutOfRange
Source§impl Error for IndexOutOfRange
impl Error for IndexOutOfRange
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 IndexOutOfRange
impl PartialEq for IndexOutOfRange
impl StructuralPartialEq for IndexOutOfRange
Auto Trait Implementations§
impl Freeze for IndexOutOfRange
impl RefUnwindSafe for IndexOutOfRange
impl Send for IndexOutOfRange
impl Sync for IndexOutOfRange
impl Unpin for IndexOutOfRange
impl UnsafeUnpin for IndexOutOfRange
impl UnwindSafe for IndexOutOfRange
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