pub struct DeOpts { /* private fields */ }
Expand description
Options for customizing deserialization.
Implementations
sourceimpl DeOpts
impl DeOpts
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.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DeOpts
impl Send for DeOpts
impl Sync for DeOpts
impl Unpin for DeOpts
impl UnwindSafe for DeOpts
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more