pub struct NbtReadConfig {
pub limits: NbtLimits,
pub parse_mode: ParseMode,
}Fields§
§limits: NbtLimits§parse_mode: ParseModeImplementations§
Source§impl NbtReadConfig
impl NbtReadConfig
pub const fn new(limits: NbtLimits, parse_mode: ParseMode) -> Self
pub const fn strict(limits: NbtLimits) -> Self
pub const fn compatible(limits: NbtLimits) -> Self
pub const fn with_parse_mode(self, parse_mode: ParseMode) -> Self
pub const fn with_limits(self, limits: NbtLimits) -> Self
Trait Implementations§
Source§impl Clone for NbtReadConfig
impl Clone for NbtReadConfig
Source§fn clone(&self) -> NbtReadConfig
fn clone(&self) -> NbtReadConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NbtReadConfig
impl Debug for NbtReadConfig
Source§impl Default for NbtReadConfig
impl Default for NbtReadConfig
Source§impl PartialEq for NbtReadConfig
impl PartialEq for NbtReadConfig
impl Copy for NbtReadConfig
impl Eq for NbtReadConfig
impl StructuralPartialEq for NbtReadConfig
Auto Trait Implementations§
impl Freeze for NbtReadConfig
impl RefUnwindSafe for NbtReadConfig
impl Send for NbtReadConfig
impl Sync for NbtReadConfig
impl Unpin for NbtReadConfig
impl UnsafeUnpin for NbtReadConfig
impl UnwindSafe for NbtReadConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.