[][src]Enum nbt::CompoundTagError

pub enum CompoundTagError<'a> {
    TagNotFound {
        name: &'a str,
    },
    TagWrongType {
        name: &'a str,
        actual_tag: &'a Tag,
    },
}

Possible types of errors while trying to get value from compound tag.

Variants

TagNotFound

Tag with provided name not found.

Fields of TagNotFound

name: &'a str

Name of tag which was not found.

TagWrongType

Tag actual type not match expected.

Fields of TagWrongType

name: &'a str

Name of tag which type not matched.

actual_tag: &'a Tag

Actual tag.

Trait Implementations

impl<'a> Debug for CompoundTagError<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for CompoundTagError<'a>

impl<'a> Send for CompoundTagError<'a>

impl<'a> Sync for CompoundTagError<'a>

impl<'a> Unpin for CompoundTagError<'a>

impl<'a> UnwindSafe for CompoundTagError<'a>

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, 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.