pub struct Punctuated<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 Punctuated<T, S>
impl<T: Clone, S: Clone> Clone for Punctuated<T, S>
Source§fn clone(&self) -> Punctuated<T, S>
fn clone(&self) -> Punctuated<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 Punctuated<T, S>
impl<T: Ord, S: Ord> Ord for Punctuated<T, S>
Source§fn cmp(&self, other: &Punctuated<T, S>) -> Ordering
fn cmp(&self, other: &Punctuated<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 Punctuated<T, S>
impl<'a, T, S> Parse<'a> for Punctuated<T, S>
Source§impl<T: PartialOrd, S: PartialOrd> PartialOrd for Punctuated<T, S>
impl<T: PartialOrd, S: PartialOrd> PartialOrd for Punctuated<T, S>
impl<T: Eq, S: Eq> Eq for Punctuated<T, S>
impl<T, S> StructuralPartialEq for Punctuated<T, S>
Auto Trait Implementations§
impl<T, S> Freeze for Punctuated<T, S>where
S: Freeze,
impl<T, S> RefUnwindSafe for Punctuated<T, S>where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, S> Send for Punctuated<T, S>
impl<T, S> Sync for Punctuated<T, S>
impl<T, S> Unpin for Punctuated<T, S>
impl<T, S> UnwindSafe for Punctuated<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