pub struct TypeRef {
pub name: Ident,
pub args: Vec<TypeArg>,
pub span: Span,
}Expand description
A type as written, for example float4, vector<float, 3> or MyStruct.
Fields§
§name: IdentThe type’s name. A qualified name keeps its ::, for example N::T.
args: Vec<TypeArg>Arguments in <>, for example float and 3 in vector<float, 3>.
span: SpanThe whole type.
Trait Implementations§
impl StructuralPartialEq for TypeRef
Auto Trait Implementations§
impl Forget for TypeRef
impl Freeze for TypeRef
impl Move for TypeRef
impl RefUnwindSafe for TypeRef
impl Send for TypeRef
impl Sync for TypeRef
impl Unpin for TypeRef
impl UnsafeUnpin for TypeRefwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<TypeArg>: UnsafeUnpin,
impl UnwindSafe for TypeRef
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