Expand description
A Rust lifetime: 'a
.
Lifetime names must conform to the following rules:
- Must start with an apostrophe.
- Must not consist of just an apostrophe:
'
. - Character after the apostrophe must be
_
or a Unicode code point with the XID_Start property. - All following characters must be Unicode code points with the XID_Continue property.
Fields§
§apostrophe: Span
§ident: Ident
Implementations§
Trait Implementations§
source§impl From<Lifetime> for TypeParamBound
impl From<Lifetime> for TypeParamBound
source§fn from(e: Lifetime) -> TypeParamBound
fn from(e: Lifetime) -> TypeParamBound
Converts to this type from the input type.
source§impl Ord for Lifetime
impl Ord for Lifetime
source§impl Parse for Lifetime
Available on crate feature parsing
only.
impl Parse for Lifetime
Available on crate feature
parsing
only.fn parse(input: ParseStream<'_>) -> Result<Self>
source§impl PartialOrd<Lifetime> for Lifetime
impl PartialOrd<Lifetime> for Lifetime
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 ToTokens for Lifetime
Available on crate feature printing
only.
impl ToTokens for Lifetime
Available on crate feature
printing
only.