Enum static_aabb2d_index::StaticAABB2DIndexBuildError[][src]

pub enum StaticAABB2DIndexBuildError {
    ZeroItemsError,
    ItemCountError {
        added: usize,
        expected: usize,
    },
    NumericCastError,
}

Error type for errors that may be returned in attempting to build the index.

Variants

ZeroItemsError

Error for the case when the item count given is 0.

ItemCountError

Error for the case when the number of items added does not match the size given at construction.

Fields of ItemCountError

added: usize

The number of items that were added.

expected: usize

The number of items that were expected (set at construction).

NumericCastError

Error for the case when the numeric type T used for the index fails to cast to/from u16.

Trait Implementations

impl Debug for StaticAABB2DIndexBuildError[src]

impl Display for StaticAABB2DIndexBuildError[src]

impl Error for StaticAABB2DIndexBuildError[src]

impl PartialEq<StaticAABB2DIndexBuildError> for StaticAABB2DIndexBuildError[src]

impl StructuralPartialEq for StaticAABB2DIndexBuildError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.