pub enum CompoundTagError<'a> {
TagNotFound {
name: &'a str,
},
TagWrongType {
name: &'a str,
actual_tag: &'a Tag,
},
}
Expand description
Possible types of errors while trying to get value from compound tag.
Variants§
Trait Implementations§
Source§impl<'a> Debug for CompoundTagError<'a>
impl<'a> Debug for CompoundTagError<'a>
Source§impl<'a> Display for CompoundTagError<'a>
impl<'a> Display for CompoundTagError<'a>
Source§impl<'a> Error for CompoundTagError<'a>
impl<'a> Error for CompoundTagError<'a>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl<'a> Freeze for CompoundTagError<'a>
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§
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