pub struct NotEmptySegment<T>(pub T);
Expand description
Left-close Right-open No Empty Segment
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<T: Clone> Clone for NotEmptySegment<T>
impl<T: Clone> Clone for NotEmptySegment<T>
Source§fn clone(&self) -> NotEmptySegment<T>
fn clone(&self) -> NotEmptySegment<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<T: Debug> Debug for NotEmptySegment<T>
impl<T: Debug> Debug for NotEmptySegment<T>
Source§impl<T: Hash> Hash for NotEmptySegment<T>
impl<T: Hash> Hash for NotEmptySegment<T>
Source§impl<T: Ord> Ord for NotEmptySegment<T>
impl<T: Ord> Ord for NotEmptySegment<T>
Source§fn cmp(&self, other: &NotEmptySegment<T>) -> Ordering
fn cmp(&self, other: &NotEmptySegment<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialEq> PartialEq for NotEmptySegment<T>
impl<T: PartialEq> PartialEq for NotEmptySegment<T>
Source§impl<T: PartialOrd> PartialOrd for NotEmptySegment<T>
impl<T: PartialOrd> PartialOrd for NotEmptySegment<T>
Source§impl<T> RandomSpec<(usize, usize)> for NotEmptySegment<T>where
T: RandomSpec<usize>,
impl<T> RandomSpec<(usize, usize)> for NotEmptySegment<T>where
T: RandomSpec<usize>,
impl<T: Copy> Copy for NotEmptySegment<T>
impl<T: Eq> Eq for NotEmptySegment<T>
impl<T> StructuralPartialEq for NotEmptySegment<T>
Auto Trait Implementations§
impl<T> Freeze for NotEmptySegment<T>where
T: Freeze,
impl<T> RefUnwindSafe for NotEmptySegment<T>where
T: RefUnwindSafe,
impl<T> Send for NotEmptySegment<T>where
T: Send,
impl<T> Sync for NotEmptySegment<T>where
T: Sync,
impl<T> Unpin for NotEmptySegment<T>where
T: Unpin,
impl<T> UnwindSafe for NotEmptySegment<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> AsTotalOrd for Twhere
T: PartialOrd,
impl<T> AsTotalOrd for Twhere
T: PartialOrd,
fn as_total_ord(&self) -> TotalOrd<&T>
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