pub enum Pair<T, P> {
Punctuated(T, P),
End(T),
}
Expand description
A punctuated pair.
Variants§
Punctuated(T, P)
A value of type T
followed by a piece of punctuation of type P
.
End(T)
A value of type T
.
Implementations§
Source§impl<T, P> Pair<T, P>
impl<T, P> Pair<T, P>
Sourcepub fn into_value(self) -> T
pub fn into_value(self) -> T
Converts the pair into the inner value.
Trait Implementations§
impl<T: Copy, P: Copy> Copy for Pair<T, P>
Auto Trait Implementations§
impl<T, P> Freeze for Pair<T, P>
impl<T, P> RefUnwindSafe for Pair<T, P>where
T: RefUnwindSafe,
P: RefUnwindSafe,
impl<T, P> Send for Pair<T, P>
impl<T, P> Sync for Pair<T, P>
impl<T, P> Unpin for Pair<T, P>
impl<T, P> UnwindSafe for Pair<T, P>where
T: UnwindSafe,
P: 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