pub struct WalkLimits {
pub max_output_bytes: usize,
pub max_list_iterations: usize,
}Expand description
Re-exported: RenderCtx::with_limits takes it.
Resource budgets for a single walk.
Both are per-render totals, not per-nesting-level.
Fields§
§max_output_bytes: usizeMaximum bytes of HTML the walk may emit.
max_list_iterations: usizeMaximum total LIST item iterations across all nesting depths.
Trait Implementations§
Source§impl Clone for WalkLimits
impl Clone for WalkLimits
Source§fn clone(&self) -> WalkLimits
fn clone(&self) -> WalkLimits
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 moreimpl Copy for WalkLimits
Source§impl Debug for WalkLimits
impl Debug for WalkLimits
Source§impl Default for WalkLimits
impl Default for WalkLimits
Source§fn default() -> WalkLimits
fn default() -> WalkLimits
Returns the “default value” for a type. Read more
impl Eq for WalkLimits
Source§impl PartialEq for WalkLimits
impl PartialEq for WalkLimits
impl StructuralPartialEq for WalkLimits
Auto Trait Implementations§
impl Freeze for WalkLimits
impl RefUnwindSafe for WalkLimits
impl Send for WalkLimits
impl Sync for WalkLimits
impl Unpin for WalkLimits
impl UnsafeUnpin for WalkLimits
impl UnwindSafe for WalkLimits
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