pub struct DeclarationInspectionBudgets {
pub per_field_bytes: u32,
pub total_bytes: u32,
}Fields§
§per_field_bytes: u32Maximum UTF-8 bytes for one rendered field.
total_bytes: u32Maximum UTF-8 bytes for all rendered fields in the inspection.
Implementations§
Source§impl DeclarationInspectionBudgets
impl DeclarationInspectionBudgets
Sourcepub fn per_field_bytes(self, bytes: u32) -> Self
pub fn per_field_bytes(self, bytes: u32) -> Self
Replace the per-field byte budget, saturating at
LEAN_DIAGNOSTIC_BYTE_LIMIT_MAX.
Sourcepub fn total_bytes(self, bytes: u32) -> Self
pub fn total_bytes(self, bytes: u32) -> Self
Replace the total inspection byte budget, saturating at
LEAN_DIAGNOSTIC_BYTE_LIMIT_MAX.
Trait Implementations§
Source§impl Clone for DeclarationInspectionBudgets
impl Clone for DeclarationInspectionBudgets
Source§fn clone(&self) -> DeclarationInspectionBudgets
fn clone(&self) -> DeclarationInspectionBudgets
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 DeclarationInspectionBudgets
Source§impl Debug for DeclarationInspectionBudgets
impl Debug for DeclarationInspectionBudgets
impl Eq for DeclarationInspectionBudgets
Source§impl<'lean> IntoLean<'lean> for DeclarationInspectionBudgets
impl<'lean> IntoLean<'lean> for DeclarationInspectionBudgets
Source§fn into_lean(self, runtime: &'lean LeanRuntime) -> Obj<'lean>
fn into_lean(self, runtime: &'lean LeanRuntime) -> Obj<'lean>
Allocate (or scalar-box) a Lean representation of
self and return
the owned handle.impl StructuralPartialEq for DeclarationInspectionBudgets
Auto Trait Implementations§
impl Freeze for DeclarationInspectionBudgets
impl RefUnwindSafe for DeclarationInspectionBudgets
impl Send for DeclarationInspectionBudgets
impl Sync for DeclarationInspectionBudgets
impl Unpin for DeclarationInspectionBudgets
impl UnsafeUnpin for DeclarationInspectionBudgets
impl UnwindSafe for DeclarationInspectionBudgets
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