Struct swh_graph::OutOfBoundError
source · pub struct OutOfBoundError {
pub index: usize,
pub len: usize,
}
Expand description
Returned by a try_
method when the given index is past the number of nodes
(or number of label names for LabelNames
properties)
Fields§
§index: usize
Indexed that was accessed
len: usize
Length of the underlying collection (maximum index + 1)
Trait Implementations§
source§impl Clone for OutOfBoundError
impl Clone for OutOfBoundError
source§fn clone(&self) -> OutOfBoundError
fn clone(&self) -> OutOfBoundError
Returns a copy 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 OutOfBoundError
impl Debug for OutOfBoundError
source§impl Display for OutOfBoundError
impl Display for OutOfBoundError
source§impl Error for OutOfBoundError
impl Error for OutOfBoundError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 Hash for OutOfBoundError
impl Hash for OutOfBoundError
source§impl PartialEq for OutOfBoundError
impl PartialEq for OutOfBoundError
source§fn eq(&self, other: &OutOfBoundError) -> bool
fn eq(&self, other: &OutOfBoundError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for OutOfBoundError
impl StructuralEq for OutOfBoundError
impl StructuralPartialEq for OutOfBoundError
Auto Trait Implementations§
impl RefUnwindSafe for OutOfBoundError
impl Send for OutOfBoundError
impl Sync for OutOfBoundError
impl Unpin for OutOfBoundError
impl UnwindSafe for OutOfBoundError
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
§impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
impl<T, U> CastableInto<U> for Twhere U: CastableFrom<T>,
§impl<T> DowncastableFrom<T> for T
impl<T> DowncastableFrom<T> for T
§fn downcast_from(value: T) -> T
fn downcast_from(value: T) -> T
Truncate the current UnsignedInt to a possibly smaller size
§impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
impl<T, U> DowncastableInto<U> for Twhere U: DowncastableFrom<T>,
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere T: ?Sized,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> UpcastableFrom<T> for T
impl<T> UpcastableFrom<T> for T
§fn upcast_from(value: T) -> T
fn upcast_from(value: T) -> T
Extend the current UnsignedInt to a possibly bigger size.