pub struct TokenPair(pub Token, pub Token);
Expand description
An owned pair of Token
s.
Tuple Fields§
§0: Token
§1: Token
Implementations§
Trait Implementations§
source§impl<'a> Equivalent<TokenPair> for &TokenPairRef<'a>
impl<'a> Equivalent<TokenPair> for &TokenPairRef<'a>
source§impl<'a> Equivalent<TokenPair> for TokenPairRef<'a>
impl<'a> Equivalent<TokenPair> for TokenPairRef<'a>
source§impl<'a> From<&(&'a str, &'a str)> for TokenPair
impl<'a> From<&(&'a str, &'a str)> for TokenPair
source§fn from(value: &TokenPairRef<'_>) -> Self
fn from(value: &TokenPairRef<'_>) -> Self
Converts to this type from the input type.
source§impl Ord for TokenPair
impl Ord for TokenPair
source§impl<'a> PartialEq<&(&'a str, &'a str)> for TokenPair
impl<'a> PartialEq<&(&'a str, &'a str)> for TokenPair
source§fn eq(&self, other: &&TokenPairRef<'_>) -> bool
fn eq(&self, other: &&TokenPairRef<'_>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialEq<(&'a str, &'a str)> for TokenPair
impl<'a> PartialEq<(&'a str, &'a str)> for TokenPair
source§fn eq(&self, other: &TokenPairRef<'_>) -> bool
fn eq(&self, other: &TokenPairRef<'_>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq for TokenPair
impl PartialEq for TokenPair
source§impl PartialOrd for TokenPair
impl PartialOrd for TokenPair
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for TokenPair
impl StructuralPartialEq for TokenPair
Auto Trait Implementations§
impl RefUnwindSafe for TokenPair
impl Send for TokenPair
impl Sync for TokenPair
impl Unpin for TokenPair
impl UnwindSafe for TokenPair
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