pub struct LitStrValue<T>(pub T);Expand description
A helper type which parses the inner type via a literal string
e.g. LitStrValue<Path> -> parses “some::path” in quotes.
Tuple Fields§
§0: TTrait Implementations§
Source§impl<T: Clone> Clone for LitStrValue<T>
 
impl<T: Clone> Clone for LitStrValue<T>
Source§fn clone(&self) -> LitStrValue<T>
 
fn clone(&self) -> LitStrValue<T>
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<T: Debug> Debug for LitStrValue<T>
 
impl<T: Debug> Debug for LitStrValue<T>
Source§impl<T: Eq> Eq for LitStrValue<T>
 
impl<T: Eq> Eq for LitStrValue<T>
#[doc(hidden)] fn assert_receiver_is_total_eq(&self)
Source§impl<T: Parse> Parse for LitStrValue<T>
 
impl<T: Parse> Parse for LitStrValue<T>
fn parse(input: ParseStream<'_>) -> Result<Self>
Source§impl<T: PartialEq> PartialEq for LitStrValue<T>
 
impl<T: PartialEq> PartialEq for LitStrValue<T>
Source§impl<T: ToTokens> ToTokens for LitStrValue<T>
 
impl<T: ToTokens> ToTokens for LitStrValue<T>
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<T> StructuralPartialEq for LitStrValue<T>
Auto Trait Implementations§
impl<T> Freeze for LitStrValue<T>where
    T: Freeze,
impl<T> RefUnwindSafe for LitStrValue<T>where
    T: RefUnwindSafe,
impl<T> Send for LitStrValue<T>where
    T: Send,
impl<T> Sync for LitStrValue<T>where
    T: Sync,
impl<T> Unpin for LitStrValue<T>where
    T: Unpin,
impl<T> UnwindSafe for LitStrValue<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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> RepToTokensExt for T
 
impl<T> RepToTokensExt for T
Source§fn next(&self) -> Option<&Self>
 
fn next(&self) -> Option<&Self>
Pretend to be an iterator for the purposes of 
quote_into_iter.
This allows repeated calls to quote_into_iter to continue
correctly returning DoesNotHaveIter.fn quote_into_iter(&self) -> (&Self, ThereIsNoIteratorInRepetition)
Source§impl<T> SizedTypeProperties for T
 
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)] const IS_ZST: bool = _
 
#[doc(hidden)] const IS_ZST: bool = _
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)] const LAYOUT: Layout = _
 
#[doc(hidden)] const LAYOUT: Layout = _
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)] const MAX_SLICE_LEN: usize = _
 
#[doc(hidden)] const MAX_SLICE_LEN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties)The largest safe length for a 
[Self]. Read moreSource§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.