pub struct PrintLimits {
pub max_depth: usize,
pub max_width: usize,
}Expand description
Limits for Shape::pretty_print_bounded.
Fields§
§max_depth: usizeHow many levels of nested arrays and objects to print. Anything deeper
prints as …. A union or intersection counts as a level only when two
or more of the members it prints are themselves arrays, objects, unions
or intersections: a nullable object (One<{ ... }, null>) costs the
same as the object, while a choice between several objects costs a
level, like the objects it multiplies.
max_width: usizeHow many elements, fields or members of any one shape to print, after
which a single … stands for the rest. Object fields and union or
intersection members carrying their own errors are kept ahead of the
cutoff. Array elements are positional, so they are never reordered.
Trait Implementations§
Source§impl Clone for PrintLimits
impl Clone for PrintLimits
impl Copy for PrintLimits
Source§impl Debug for PrintLimits
impl Debug for PrintLimits
Source§impl Default for PrintLimits
impl Default for PrintLimits
impl Eq for PrintLimits
Source§impl PartialEq for PrintLimits
impl PartialEq for PrintLimits
impl StructuralPartialEq for PrintLimits
Auto Trait Implementations§
impl Freeze for PrintLimits
impl RefUnwindSafe for PrintLimits
impl Send for PrintLimits
impl Sync for PrintLimits
impl Unpin for PrintLimits
impl UnsafeUnpin for PrintLimits
impl UnwindSafe for PrintLimits
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.