Enum TextFormError
#[non_exhaustive]pub enum TextFormError {
Unavailable,
TooDeep,
Malformed,
NonFinite,
InvalidString,
NestedNull,
}Expand description
A refused Text crossing. No partially converted fields are written.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
No backend is available.
TooDeep
A component path or opaque NBT container path exceeds 512.
Malformed
Fields or parent/relation tables are inconsistent.
NonFinite
Tag→JSON emission cannot represent NaN or infinity.
InvalidString
Tag→JSON emission cannot represent an unpaired UTF-16 surrogate.
NestedNull
Vanilla JsonOps→NbtOps refuses null nested in metadata.
Trait Implementations§
§impl Clone for TextFormError
impl Clone for TextFormError
§fn clone(&self) -> TextFormError
fn clone(&self) -> TextFormError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for TextFormError
impl Debug for TextFormError
§impl Display for TextFormError
impl Display for TextFormError
impl Eq for TextFormError
§impl Error for TextFormError
impl Error for TextFormError
1.30.0 · 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()
§impl From<TextFormError> for PackFinderError
impl From<TextFormError> for PackFinderError
§fn from(error: TextFormError) -> PackFinderError
fn from(error: TextFormError) -> PackFinderError
Converts to this type from the input type.
§impl From<TextFormError> for UnspawnedMobError
impl From<TextFormError> for UnspawnedMobError
§fn from(error: TextFormError) -> UnspawnedMobError
fn from(error: TextFormError) -> UnspawnedMobError
Converts to this type from the input type.
§impl From<TextFormError> for StackWriteError
impl From<TextFormError> for StackWriteError
§fn from(error: TextFormError) -> StackWriteError
fn from(error: TextFormError) -> StackWriteError
Converts to this type from the input type.
§impl NoBackend for TextFormError
impl NoBackend for TextFormError
§fn no_backend() -> TextFormError
fn no_backend() -> TextFormError
The error for a host without a game.
§impl PartialEq for TextFormError
impl PartialEq for TextFormError
impl StructuralPartialEq for TextFormError
Auto Trait Implementations§
impl Freeze for TextFormError
impl RefUnwindSafe for TextFormError
impl Send for TextFormError
impl Sync for TextFormError
impl Unpin for TextFormError
impl UnsafeUnpin for TextFormError
impl UnwindSafe for TextFormError
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