pub struct NbtLimits {
pub max_depth: usize,
pub max_read_bytes: usize,
pub max_string_len: usize,
pub max_array_len: usize,
pub max_list_len: usize,
pub max_compound_entries: usize,
}Fields§
§max_depth: usize§max_read_bytes: usize§max_string_len: usize§max_array_len: usize§max_list_len: usize§max_compound_entries: usizeImplementations§
Source§impl NbtLimits
impl NbtLimits
pub const fn new( max_depth: usize, max_read_bytes: usize, max_string_len: usize, max_array_len: usize, max_list_len: usize, max_compound_entries: usize, ) -> Self
pub const fn with_max_depth(self, max_depth: usize) -> Self
pub const fn with_max_read_bytes(self, max_read_bytes: usize) -> Self
pub const fn with_max_string_len(self, max_string_len: usize) -> Self
pub const fn with_max_array_len(self, max_array_len: usize) -> Self
pub const fn with_max_list_len(self, max_list_len: usize) -> Self
pub const fn with_max_compound_entries( self, max_compound_entries: usize, ) -> Self
Trait Implementations§
impl Copy for NbtLimits
impl Eq for NbtLimits
impl StructuralPartialEq for NbtLimits
Auto Trait Implementations§
impl Freeze for NbtLimits
impl RefUnwindSafe for NbtLimits
impl Send for NbtLimits
impl Sync for NbtLimits
impl Unpin for NbtLimits
impl UnsafeUnpin for NbtLimits
impl UnwindSafe for NbtLimits
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.