Struct SmallIndexError

pub struct SmallIndexError { /* private fields */ }

This error occurs when a small index could not be constructed.

This occurs when given an integer exceeding the maximum small index value.

When the std feature is enabled, this implements the Error trait.

Implementations

impl SmallIndexError

fn attempted(&self) -> u64

Returns the value that could not be converted to a small index.

Trait Implementations

impl Clone for SmallIndexError

fn clone(&self) -> Self

impl Debug for SmallIndexError

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Display for SmallIndexError

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for SmallIndexError

impl Error for SmallIndexError

impl PartialEq for SmallIndexError

fn eq(&self, other: &Self) -> bool

impl StructuralPartialEq for SmallIndexError

Auto Trait Implementations

impl Freeze for SmallIndexError

impl RefUnwindSafe for SmallIndexError

impl Send for SmallIndexError

impl Sync for SmallIndexError

impl Unpin for SmallIndexError

impl UnsafeUnpin for SmallIndexError

impl UnwindSafe for SmallIndexError

Blanket Implementations

impl<T> Any for SmallIndexError where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for SmallIndexError where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for SmallIndexError where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for SmallIndexError where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for SmallIndexError

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for SmallIndexError where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T> ToString for SmallIndexError where T: Display + ?Sized,

fn to_string(&self) -> String

impl<T, U> Into<U> for SmallIndexError where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for SmallIndexError where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for SmallIndexError where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>