Struct nom_grapheme_clusters::span::Symbol
source · pub struct Symbol<T> {
pub span: Span,
pub data: T,
}
Expand description
A type for metadata associated with a span (“spanned data”).
Fields§
§span: Span
The span from which metadata comes from.
data: T
Metadata produced from the span.
Implementations§
Trait Implementations§
source§impl<T> Ord for Symbol<T>where
T: Ord,
impl<T> Ord for Symbol<T>where T: Ord,
source§impl<T> PartialEq<Symbol<T>> for Symbol<T>where
T: PartialEq,
impl<T> PartialEq<Symbol<T>> for Symbol<T>where T: PartialEq,
source§impl<T> PartialOrd<Symbol<T>> for Symbol<T>where
T: PartialOrd,
impl<T> PartialOrd<Symbol<T>> for Symbol<T>where T: PartialOrd,
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 moresource§impl<T> PartialOrd<T> for Symbol<T>where
T: PartialOrd,
impl<T> PartialOrd<T> for Symbol<T>where T: PartialOrd,
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<T> Eq for Symbol<T>where T: Eq,
Auto Trait Implementations§
impl<T> RefUnwindSafe for Symbol<T>where T: RefUnwindSafe,
impl<T> Send for Symbol<T>where T: Send,
impl<T> Sync for Symbol<T>where T: Sync,
impl<T> Unpin for Symbol<T>where T: Unpin,
impl<T> UnwindSafe for Symbol<T>where 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