pub struct DecodeLimits {
pub max_bytes: usize,
pub max_constants: u32,
pub max_functions: u32,
pub max_capture_count: u32,
pub max_parameter_count: u32,
pub max_register_count: u32,
pub max_instructions_per_function: u32,
pub max_total_instructions: u64,
pub max_handlers_per_function: u32,
pub max_string_units: u32,
pub max_bigint_bytes: u32,
}Expand description
Decoder allocation/input ceilings, enforced before any allocation.
Fields§
§max_bytes: usize§max_constants: u32§max_functions: u32§max_capture_count: u32§max_parameter_count: u32§max_register_count: u32§max_instructions_per_function: u32§max_total_instructions: u64§max_handlers_per_function: u32§max_string_units: u32§max_bigint_bytes: u32Trait Implementations§
Source§impl Clone for DecodeLimits
impl Clone for DecodeLimits
Source§fn clone(&self) -> DecodeLimits
fn clone(&self) -> DecodeLimits
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 moreSource§impl Debug for DecodeLimits
impl Debug for DecodeLimits
Source§impl Default for DecodeLimits
impl Default for DecodeLimits
impl Eq for DecodeLimits
Source§impl PartialEq for DecodeLimits
impl PartialEq for DecodeLimits
impl StructuralPartialEq for DecodeLimits
Auto Trait Implementations§
impl Freeze for DecodeLimits
impl RefUnwindSafe for DecodeLimits
impl Send for DecodeLimits
impl Sync for DecodeLimits
impl Unpin for DecodeLimits
impl UnsafeUnpin for DecodeLimits
impl UnwindSafe for DecodeLimits
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