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 PartialOrd for Limit
impl PartialOrd for Limit
impl 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