Enum json_syntax::print::Limit
source · [−]Variants
Always
Always expanded, even if empty.
Item(usize)
Expanded if the array/object has more than the given number of items.
Width(usize)
Expanded if the representation of the array/object is more than the given number of characters long.
ItemOrWidth(usize, usize)
Expanded if the array/object has more than the given number of items (first argument), or if its the representation is more than the given number of characters long (second argument).
Trait Implementations
sourceimpl Ord for Limit
impl Ord for Limit
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<Limit> for Limit
impl PartialEq<Limit> for Limit
sourceimpl PartialOrd<Limit> for Limit
impl PartialOrd<Limit> for Limit
sourcefn partial_cmp(&self, other: &Limit) -> Option<Ordering>
fn partial_cmp(&self, other: &Limit) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for Limit
impl Eq for Limit
impl StructuralEq for Limit
impl StructuralPartialEq for Limit
Auto Trait Implementations
impl RefUnwindSafe for Limit
impl Send for Limit
impl Sync for Limit
impl Unpin for Limit
impl UnwindSafe for Limit
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