Enum quartz_nbt::NbtStructureError [−][src]
pub enum NbtStructureError { TypeMismatch, InvalidIndex, MissingTag, }
Expand description
An error associated with the structure of an NBT tag tree. This error represents a conflict between the expected and actual structure of an NBT tag tree.
Variants
The expected type of a tag was not the type encountered.
An index was out of bounds.
A tag in a NbtCompound
was absent.
Trait Implementations
impl Clone for NbtStructureError
[src]
impl Clone for NbtStructureError
[src]fn clone(&self) -> NbtStructureError
[src]
fn clone(&self) -> NbtStructureError
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for NbtStructureError
[src]
impl Debug for NbtStructureError
[src]impl Display for NbtStructureError
[src]
impl Display for NbtStructureError
[src]impl Error for NbtStructureError
[src]
impl Error for NbtStructureError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]use the Display impl or to_string()
impl From<NbtReprError<NbtStructureError>> for NbtStructureError
[src]
impl From<NbtReprError<NbtStructureError>> for NbtStructureError
[src]fn from(x: NbtReprError<NbtStructureError>) -> Self
[src]
fn from(x: NbtReprError<NbtStructureError>) -> Self
[src]Performs the conversion.
impl<E> From<NbtStructureError> for NbtReprError<E>
[src]
impl<E> From<NbtStructureError> for NbtReprError<E>
[src]fn from(x: NbtStructureError) -> Self
[src]
fn from(x: NbtStructureError) -> Self
[src]Performs the conversion.
impl Hash for NbtStructureError
[src]
impl Hash for NbtStructureError
[src]impl PartialEq<NbtStructureError> for NbtStructureError
[src]
impl PartialEq<NbtStructureError> for NbtStructureError
[src]impl Copy for NbtStructureError
[src]
impl Eq for NbtStructureError
[src]
impl StructuralEq for NbtStructureError
[src]
impl StructuralPartialEq for NbtStructureError
[src]
Auto Trait Implementations
impl RefUnwindSafe for NbtStructureError
impl Send for NbtStructureError
impl Sync for NbtStructureError
impl Unpin for NbtStructureError
impl UnwindSafe for NbtStructureError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more