Struct darling_core::util::IdentString [−][src]
pub struct IdentString { /* fields omitted */ }
Expand description
A wrapper for an Ident
which also keeps the value as a string.
This struct can be used to perform string comparisons and operations.
Implementations
impl IdentString
[src]
impl IdentString
[src]Trait Implementations
impl Clone for IdentString
[src]
impl Clone for IdentString
[src]fn clone(&self) -> IdentString
[src]
fn clone(&self) -> IdentString
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for IdentString
[src]
impl Debug for IdentString
[src]impl Display for IdentString
[src]
impl Display for IdentString
[src]impl FromMeta for IdentString
[src]
impl FromMeta for IdentString
[src]fn from_meta(item: &Meta) -> Result<Self>
[src]
fn from_meta(item: &Meta) -> Result<Self>
[src]Create an instance from a syn::Meta
by dispatching to the format-appropriate
trait function. This generally should not be overridden by implementers. Read more
fn from_nested_meta(item: &NestedMeta) -> Result<Self>
[src]
fn from_word() -> Result<Self>
[src]
fn from_word() -> Result<Self>
[src]Create an instance from the presence of the word in the attribute with no additional options specified. Read more
fn from_list(items: &[NestedMeta]) -> Result<Self>
[src]
fn from_list(items: &[NestedMeta]) -> Result<Self>
[src]Create an instance from a list of nested meta items.
fn from_value(value: &Lit) -> Result<Self>
[src]
fn from_value(value: &Lit) -> Result<Self>
[src]Create an instance from a literal value of either foo = "bar"
or foo("bar")
.
This dispatches to the appropriate method based on the type of literal encountered,
and generally should not be overridden by implementers. Read more
fn from_char(value: char) -> Result<Self>
[src]
fn from_char(value: char) -> Result<Self>
[src]Create an instance from a char literal in a value position.
fn from_string(value: &str) -> Result<Self>
[src]
fn from_string(value: &str) -> Result<Self>
[src]Create an instance from a string literal in a value position.
impl Hash for IdentString
[src]
impl Hash for IdentString
[src]impl Ord for IdentString
[src]
impl Ord for IdentString
[src]impl<'a> PartialEq<&'a str> for IdentString
[src]
impl<'a> PartialEq<&'a str> for IdentString
[src]impl PartialEq<IdentString> for IdentString
[src]
impl PartialEq<IdentString> for IdentString
[src]impl PartialEq<String> for IdentString
[src]
impl PartialEq<String> for IdentString
[src]impl PartialOrd<IdentString> for IdentString
[src]
impl PartialOrd<IdentString> for IdentString
[src]fn partial_cmp(&self, other: &IdentString) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &IdentString) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl ToTokens for IdentString
[src]
impl ToTokens for IdentString
[src]fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]Write self
to the given TokenStream
. Read more
fn to_token_stream(&self) -> TokenStream
[src]
fn to_token_stream(&self) -> TokenStream
[src]Convert self
directly into a TokenStream
object. Read more
fn into_token_stream(self) -> TokenStream
[src]
fn into_token_stream(self) -> TokenStream
[src]Convert self
directly into a TokenStream
object. Read more
impl Eq for IdentString
[src]
Auto Trait Implementations
impl RefUnwindSafe for IdentString
impl !Send for IdentString
impl !Sync for IdentString
impl Unpin for IdentString
impl UnwindSafe for IdentString
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Spanned for T where
T: Spanned + ?Sized,
[src]
impl<T> Spanned for T where
T: Spanned + ?Sized,
[src]pub fn span(&self) -> Span
[src]
pub fn span(&self) -> Span
[src]Returns a Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more