pub struct Ty {
pub id: NodeId,
pub kind: TyKind,
pub span: Span,
}Fields§
§id: NodeId§kind: TyKind§span: SpanImplementations§
Trait Implementations§
Source§impl HasAttrs for Ty
impl HasAttrs for Ty
Source§const SUPPORTS_CUSTOM_INNER_ATTRS: bool = false
const SUPPORTS_CUSTOM_INNER_ATTRS: bool = false
This is
true if this HasAttrs might support ‘custom’ (proc-macro) inner
attributes. Attributes like #![cfg] and #![cfg_attr] are not
considered ‘custom’ attributes. Read morefn attrs(&self) -> &[Attribute]
fn visit_attrs(&mut self, _f: impl FnOnce(&mut AttrVec))
Source§impl<V: MutVisitor> MutVisitable<V> for Ty
impl<V: MutVisitor> MutVisitable<V> for Ty
Source§impl<__V> MutWalkable<__V> for Tywhere
__V: MutVisitor,
impl<__V> MutWalkable<__V> for Tywhere
__V: MutVisitor,
Auto Trait Implementations§
impl DynSend for Ty
impl DynSync for Ty
impl Forget for Ty
impl Freeze for Tywhere
*const Ty is !null: Freeze,
PhantomData<Ty>: Freeze,
*const Expr is !null: Freeze,
PhantomData<Expr>: Freeze,
*const FnPtrTy is !null: Freeze,
PhantomData<FnPtrTy>: Freeze,
*const UnsafeBinderTy is !null: Freeze,
PhantomData<UnsafeBinderTy>: Freeze,
*const Header is !null: Freeze,
PhantomData<Box<Ty>>: Freeze,
*const QSelf is !null: Freeze,
PhantomData<QSelf>: Freeze,
PhantomData<PathSegment>: Freeze,
PhantomData<GenericBound>: Freeze,
*const MacCall is !null: Freeze,
PhantomData<MacCall>: Freeze,
*const TyPat is !null: Freeze,
PhantomData<TyPat>: Freeze,
PhantomData<Ident>: Freeze,
impl Move for Ty
impl RefUnwindSafe for Ty
impl Send for Ty
impl Sync for Ty
impl Unpin for Ty
impl UnsafeUnpin for Tywhere
*const Ty is !null: UnsafeUnpin,
PhantomData<Ty>: UnsafeUnpin,
*const Expr is !null: UnsafeUnpin,
PhantomData<Expr>: UnsafeUnpin,
*const FnPtrTy is !null: UnsafeUnpin,
PhantomData<FnPtrTy>: UnsafeUnpin,
*const UnsafeBinderTy is !null: UnsafeUnpin,
PhantomData<UnsafeBinderTy>: UnsafeUnpin,
*const Header is !null: UnsafeUnpin,
PhantomData<Box<Ty>>: UnsafeUnpin,
*const QSelf is !null: UnsafeUnpin,
PhantomData<QSelf>: UnsafeUnpin,
PhantomData<PathSegment>: UnsafeUnpin,
PhantomData<GenericBound>: UnsafeUnpin,
*const MacCall is !null: UnsafeUnpin,
PhantomData<MacCall>: UnsafeUnpin,
*const TyPat is !null: UnsafeUnpin,
PhantomData<TyPat>: UnsafeUnpin,
PhantomData<Ident>: UnsafeUnpin,
impl UnwindSafe for Tywhere
BoxRaw<Ty>: UnwindSafe,
BoxRaw<Expr>: UnwindSafe,
BoxRaw<FnPtrTy>: UnwindSafe,
BoxRaw<UnsafeBinderTy>: UnwindSafe,
NonNull<Header>: UnwindSafe,
BoxRaw<QSelf>: UnwindSafe,
BoxRaw<GenericArgs>: UnwindSafe,
BoxRaw<NormalAttr>: UnwindSafe,
BoxRaw<SyntheticAttr>: UnwindSafe,
BoxRaw<MacCall>: UnwindSafe,
BoxRaw<TyPat>: 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
Source§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 56 bytes