pub struct DeOpts { /* private fields */ }Expand description
Options for customizing deserialization.
Implementations§
Source§impl DeOpts
impl DeOpts
Sourcepub fn network_nbt() -> Self
pub fn network_nbt() -> Self
Creates a decoder for “network NBT” mode. At the moment that consists compound tags not having names (or their length).
Sourcepub fn max_seq_len(self, value: usize) -> Self
pub fn max_seq_len(self, value: usize) -> Self
Set the maximum length any given sequence can be, eg lists. This does not apply to NBT array types. This can help prevent panics on malformed data.
Sourcepub fn expect_coumpound_names(self, value: bool) -> Self
pub fn expect_coumpound_names(self, value: bool) -> Self
Sets wheather the deserializer should expect compound tags to have names.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DeOpts
impl RefUnwindSafe for DeOpts
impl Send for DeOpts
impl Sync for DeOpts
impl Unpin for DeOpts
impl UnsafeUnpin for DeOpts
impl UnwindSafe for DeOpts
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