pub struct TypePathEntry {
pub kind: u8,
pub argument_index: u8,
pub origin: AttributeOrigin,
}Expand description
One step in a type annotation’s path from the annotated type to its target component.
Fields§
§kind: u8Path kind (array, nested, wildcard bound, or type argument).
argument_index: u8Type-argument index; zero for kinds other than type argument.
origin: AttributeOriginSource range of this path entry.
Trait Implementations§
Source§impl Clone for TypePathEntry
impl Clone for TypePathEntry
Source§fn clone(&self) -> TypePathEntry
fn clone(&self) -> TypePathEntry
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 moreimpl Copy for TypePathEntry
Source§impl Debug for TypePathEntry
impl Debug for TypePathEntry
impl Eq for TypePathEntry
Source§impl PartialEq for TypePathEntry
impl PartialEq for TypePathEntry
impl StructuralPartialEq for TypePathEntry
Auto Trait Implementations§
impl Freeze for TypePathEntry
impl RefUnwindSafe for TypePathEntry
impl Send for TypePathEntry
impl Sync for TypePathEntry
impl Unpin for TypePathEntry
impl UnsafeUnpin for TypePathEntry
impl UnwindSafe for TypePathEntry
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