Enum json_ld_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 for Limit
impl PartialEq for Limit
source§impl PartialOrd for Limit
impl PartialOrd 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 moreimpl Copy for Limit
impl Eq for Limit
impl StructuralPartialEq for Limit
Auto Trait Implementations§
impl Freeze for Limit
impl RefUnwindSafe for Limit
impl Send for Limit
impl Sync for Limit
impl Unpin for Limit
impl UnwindSafe for Limit
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> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
source§impl<T> CallHasher for T
impl<T> CallHasher for T
source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
fn equivalent(&self, key: &K) -> bool
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.