pub struct TypeName {
pub specs: DeclSpecsId,
pub declarator: DeclaratorId,
pub span: Span,
}Expand description
A type written where a type is expected rather than where a declaration is.
The operand of a cast, of sizeof, of _Generic, of a compound literal. Specifiers plus an
abstract declarator, which is a declarator like any other with no name in it.
Fields§
§specs: DeclSpecsIdThe specifiers.
declarator: DeclaratorIdThe abstract declarator, which is empty when the type is just its specifiers.
span: SpanThe whole type name.
Trait Implementations§
impl Copy for TypeName
impl Eq for TypeName
impl StructuralPartialEq for TypeName
Auto Trait Implementations§
impl Freeze for TypeName
impl RefUnwindSafe for TypeName
impl Send for TypeName
impl Sync for TypeName
impl Unpin for TypeName
impl UnsafeUnpin for TypeName
impl UnwindSafe for TypeName
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