pub struct NamedLifetime(Ident);
Expand description
Tuple Fields§
§0: Ident
Implementations§
Trait Implementations§
source§impl Clone for NamedLifetime
impl Clone for NamedLifetime
source§fn clone(&self) -> NamedLifetime
fn clone(&self) -> NamedLifetime
Returns a copy of the value. Read more
1.0.0 · 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 NamedLifetime
impl Debug for NamedLifetime
source§impl<'de> Deserialize<'de> for NamedLifetime
impl<'de> Deserialize<'de> for NamedLifetime
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for NamedLifetime
impl Display for NamedLifetime
source§impl From<&Lifetime> for NamedLifetime
impl From<&Lifetime> for NamedLifetime
source§impl From<&NamedLifetime> for NamedLifetime
impl From<&NamedLifetime> for NamedLifetime
source§fn from(this: &NamedLifetime) -> Self
fn from(this: &NamedLifetime) -> Self
Converts to this type from the input type.
source§impl Hash for NamedLifetime
impl Hash for NamedLifetime
source§impl Ord for NamedLifetime
impl Ord for NamedLifetime
source§fn cmp(&self, other: &NamedLifetime) -> Ordering
fn cmp(&self, other: &NamedLifetime) -> Ordering
1.21.0 · 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<Lifetime> for NamedLifetime
impl PartialEq<Lifetime> for NamedLifetime
source§impl PartialEq for NamedLifetime
impl PartialEq for NamedLifetime
source§impl PartialOrd for NamedLifetime
impl PartialOrd for NamedLifetime
source§impl Serialize for NamedLifetime
impl Serialize for NamedLifetime
source§impl ToTokens for NamedLifetime
impl ToTokens for NamedLifetime
source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
impl Eq for NamedLifetime
impl StructuralPartialEq for NamedLifetime
Auto Trait Implementations§
impl Freeze for NamedLifetime
impl RefUnwindSafe for NamedLifetime
impl Send for NamedLifetime
impl Sync for NamedLifetime
impl Unpin for NamedLifetime
impl UnwindSafe for NamedLifetime
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Spanned for T
impl<T> Spanned for T
source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty.