Struct pyo3_macros_backend::attributes::LitStrValue
source · 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: T
Trait 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§fn eq(&self, other: &LitStrValue<T>) -> bool
fn eq(&self, other: &LitStrValue<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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> 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§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.