pub struct StrLiteral(pub String);Expand description
A string literal.
Tuple Fields§
§0: StringTrait Implementations§
Source§impl Clone for StrLiteral
impl Clone for StrLiteral
Source§fn clone(&self) -> StrLiteral
fn clone(&self) -> StrLiteral
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StrLiteral
impl Debug for StrLiteral
Source§impl Default for StrLiteral
impl Default for StrLiteral
Source§fn default() -> StrLiteral
fn default() -> StrLiteral
Returns the “default value” for a type. Read more
impl Eq for StrLiteral
Source§impl Hash for StrLiteral
impl Hash for StrLiteral
Source§impl Ord for StrLiteral
impl Ord for StrLiteral
Source§fn cmp(&self, other: &StrLiteral) -> Ordering
fn cmp(&self, other: &StrLiteral) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StrLiteral
impl PartialEq for StrLiteral
Source§fn eq(&self, other: &StrLiteral) -> bool
fn eq(&self, other: &StrLiteral) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for StrLiteral
impl PartialOrd for StrLiteral
impl StructuralPartialEq for StrLiteral
Auto Trait Implementations§
impl Freeze for StrLiteral
impl RefUnwindSafe for StrLiteral
impl Send for StrLiteral
impl Sync for StrLiteral
impl Unpin for StrLiteral
impl UnsafeUnpin for StrLiteral
impl UnwindSafe for StrLiteral
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S> Parse for Swhere
S: TokenParse,
impl<S> Parse for Swhere
S: TokenParse,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> TokenParse for Twhere
T: DirectTokenParse,
impl<T> TokenParse for Twhere
T: DirectTokenParse,
Source§type Intermediate = T
type Intermediate = T
An intermediate to hold the match before it is converted to the actual component.
Source§fn match_(
m_token: Option<&Token>,
span: Range<usize>,
) -> Result<<T as TokenParse>::Intermediate, ParseErr>
fn match_( m_token: Option<&Token>, span: Range<usize>, ) -> Result<<T as TokenParse>::Intermediate, ParseErr>
Tries to match the next token to the given component, if possible. Read more
Source§fn convert(
imed: <T as TokenParse>::Intermediate,
_span: Range<usize>,
) -> Result<T, ParseErr>
fn convert( imed: <T as TokenParse>::Intermediate, _span: Range<usize>, ) -> Result<T, ParseErr>
Parses the intermediate into the given component, raising an error if conversion fails.