pub struct DebugAdjacent<'a, T> {
pub items: &'a [T],
pub sep: &'a str,
}Expand description
Displays a list of integers. If the list contains sequences of contiguous (increasing) values
then these will be displayed using start-end notation, rather than displaying each value.
The user of this type provides a function which indicates whether items are “adjacent” or not.
Fields§
§items: &'a [T]The items that will be displayed
sep: &'a strThe separator between the first and last item in a range.
Implementations§
Trait Implementations§
Source§impl<'a, T: Clone> Clone for DebugAdjacent<'a, T>
impl<'a, T: Clone> Clone for DebugAdjacent<'a, T>
Source§fn clone(&self) -> DebugAdjacent<'a, T>
fn clone(&self) -> DebugAdjacent<'a, T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a, T> Debug for DebugAdjacent<'a, T>where
T: Debug + IsAdjacent,
impl<'a, T> Debug for DebugAdjacent<'a, T>where
T: Debug + IsAdjacent,
impl<'a, T: Copy> Copy for DebugAdjacent<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for DebugAdjacent<'a, T>
impl<'a, T> RefUnwindSafe for DebugAdjacent<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for DebugAdjacent<'a, T>where
T: Sync,
impl<'a, T> Sync for DebugAdjacent<'a, T>where
T: Sync,
impl<'a, T> Unpin for DebugAdjacent<'a, T>
impl<'a, T> UnwindSafe for DebugAdjacent<'a, T>where
T: RefUnwindSafe,
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