Enum json_syntax::print::Limit
source · pub enum Limit {
Always,
Item(usize),
Width(usize),
ItemOrWidth(usize, usize),
}
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§
source§impl Ord for Limit
impl Ord for Limit
source§impl PartialEq<Limit> for Limit
impl PartialEq<Limit> for Limit
source§impl PartialOrd<Limit> for Limit
impl PartialOrd<Limit> for Limit
1.0.0 · source§fn 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