pub enum Output<'a, S> {
Text(&'a str),
Escape(S),
}
Expand description
The type which represents a result of parsing.
Variants
Text(&'a str)
A string output.
Escape(S)
An escape output.
Implementations
Trait Implementations
sourceimpl<'a, S> Display for Output<'a, S>where
S: Display,
impl<'a, S> Display for Output<'a, S>where
S: Display,
sourcefn fmt(&self, formatter: &mut Formatter<'_>) -> DisplayResult
fn fmt(&self, formatter: &mut Formatter<'_>) -> DisplayResult
Formats the value using the given formatter. Read more
sourceimpl<'a, S: Ord> Ord for Output<'a, S>
impl<'a, S: Ord> Ord for Output<'a, S>
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<'a, S: PartialEq> PartialEq<Output<'a, S>> for Output<'a, S>
impl<'a, S: PartialEq> PartialEq<Output<'a, S>> for Output<'a, S>
sourceimpl<'a, S: PartialOrd> PartialOrd<Output<'a, S>> for Output<'a, S>
impl<'a, S: PartialOrd> PartialOrd<Output<'a, S>> for Output<'a, S>
sourcefn partial_cmp(&self, other: &Output<'a, S>) -> Option<Ordering>
fn partial_cmp(&self, other: &Output<'a, S>) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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<'a, S: Copy> Copy for Output<'a, S>
impl<'a, S: Eq> Eq for Output<'a, S>
impl<'a, S> StructuralEq for Output<'a, S>
impl<'a, S> StructuralPartialEq for Output<'a, S>
Auto Trait Implementations
impl<'a, S> RefUnwindSafe for Output<'a, S>where
S: RefUnwindSafe,
impl<'a, S> Send for Output<'a, S>where
S: Send,
impl<'a, S> Sync for Output<'a, S>where
S: Sync,
impl<'a, S> Unpin for Output<'a, S>where
S: Unpin,
impl<'a, S> UnwindSafe for Output<'a, S>where
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more