Enum flexi_parse::punctuated::Pair
source · 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> RefUnwindSafe for Pair<T, P>where P: RefUnwindSafe, T: RefUnwindSafe,
impl<T, P> Send for Pair<T, P>where P: Send, T: Send,
impl<T, P> Sync for Pair<T, P>where P: Sync, T: Sync,
impl<T, P> Unpin for Pair<T, P>where P: Unpin, T: Unpin,
impl<T, P> UnwindSafe for Pair<T, P>where P: 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