[][src]Enum savefile::IntrospectionError

pub enum IntrospectionError {
    BadDepth,
    UnknownKey,
    NoChildren,
    IndexOutOfRange,
    AlreadyAtTop,
}

Ways in which introspection may fail

Variants

BadDepth

The given depth value is invalid. At start of introspection, max depth value is 0, and fields of the root object are introspected. If a field is selected, a new level is expanded and max depth value is 1.

UnknownKey

The given key was not found

NoChildren

An attempt was made to select/expand a node which has no children.

IndexOutOfRange

An attempt was made to select/expand a child with an index greater or equal to the number of children.

AlreadyAtTop

An attempt was made to back up when already at the top.

Trait Implementations

impl Clone for IntrospectionError[src]

impl Copy for IntrospectionError[src]

impl Debug for IntrospectionError[src]

impl Eq for IntrospectionError[src]

impl PartialEq<IntrospectionError> for IntrospectionError[src]

impl StructuralEq for IntrospectionError[src]

impl StructuralPartialEq for IntrospectionError[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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,