enum GenericUsage {
Absent,
Bare,
InContainer(TypePath),
}Expand description
How a generic type parameter T appears in a type.
Variants§
Absent
T does not appear in this type.
Bare
T appears bare (possibly wrapped in Option or Result).
InContainer(TypePath)
T appears inside a container type (e.g. DatumList<'a, T>, Array<'a, T>).
The stored syn::TypePath is the container with T erased to Datum<'a>.
Trait Implementations§
Source§impl Clone for GenericUsage
impl Clone for GenericUsage
Source§fn clone(&self) -> GenericUsage
fn clone(&self) -> GenericUsage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GenericUsage
impl Debug for GenericUsage
impl Eq for GenericUsage
Auto Trait Implementations§
impl !Send for GenericUsage
impl !Sync for GenericUsage
impl Freeze for GenericUsage
impl RefUnwindSafe for GenericUsage
impl Unpin for GenericUsage
impl UnsafeUnpin for GenericUsage
impl UnwindSafe for GenericUsage
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