Enum darling::usage::Purpose [−][src]
The goal of tracing generic parameter usage.
Not all uses of type parameters imply a need to add bounds to a generated trait impl.
For example, a field of type <Vec<T> as a::b::Trait>::Associated
does not need a
where T: Serialize
bound in serde
.
However, a proc macro that is attempting to generate a helper struct would need to
know about this usage, or else the generated code would reference an unknown type T
and fail to compile.
Variants
The tracing is being used to generate an impl
block.
Uses such as syn::TypePath.qself
will not be returned.
The tracing is being used to generate a new struct or enum.
All uses will be returned.
Trait Implementations
impl Clone for Purpose
[src]
impl Copy for Purpose
[src]
impl Debug for Purpose
[src]
impl Eq for Purpose
[src]
impl From<Purpose> for Options
[src]
impl PartialEq<Purpose> for Purpose
[src]
pub fn eq(&self, other: &Purpose) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for Purpose
[src]
impl StructuralPartialEq for Purpose
[src]
Auto Trait Implementations
impl RefUnwindSafe for Purpose
impl Send for Purpose
impl Sync for Purpose
impl Unpin for Purpose
impl UnwindSafe for Purpose
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,