pub struct PunctuatedNonEmpty<T, S> {
pub list: Vec<T>,
pub separator: S,
}
Expand description
Parses item1, item2, item3, ...
Fields§
§list: Vec<T>
§separator: S
Trait Implementations§
Source§impl<T: Clone, S: Clone> Clone for PunctuatedNonEmpty<T, S>
impl<T: Clone, S: Clone> Clone for PunctuatedNonEmpty<T, S>
Source§fn clone(&self) -> PunctuatedNonEmpty<T, S>
fn clone(&self) -> PunctuatedNonEmpty<T, S>
Returns a copy 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: Ord, S: Ord> Ord for PunctuatedNonEmpty<T, S>
impl<T: Ord, S: Ord> Ord for PunctuatedNonEmpty<T, S>
Source§fn cmp(&self, other: &PunctuatedNonEmpty<T, S>) -> Ordering
fn cmp(&self, other: &PunctuatedNonEmpty<T, S>) -> 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<'a, T, S> Parse<'a> for PunctuatedNonEmpty<T, S>
impl<'a, T, S> Parse<'a> for PunctuatedNonEmpty<T, S>
Source§impl<T: PartialOrd, S: PartialOrd> PartialOrd for PunctuatedNonEmpty<T, S>
impl<T: PartialOrd, S: PartialOrd> PartialOrd for PunctuatedNonEmpty<T, S>
impl<T: Eq, S: Eq> Eq for PunctuatedNonEmpty<T, S>
impl<T, S> StructuralPartialEq for PunctuatedNonEmpty<T, S>
Auto Trait Implementations§
impl<T, S> Freeze for PunctuatedNonEmpty<T, S>where
S: Freeze,
impl<T, S> RefUnwindSafe for PunctuatedNonEmpty<T, S>where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, S> Send for PunctuatedNonEmpty<T, S>
impl<T, S> Sync for PunctuatedNonEmpty<T, S>
impl<T, S> Unpin for PunctuatedNonEmpty<T, S>
impl<T, S> UnwindSafe for PunctuatedNonEmpty<T, S>where
S: UnwindSafe,
T: UnwindSafe,
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