pub enum TypeRef<'a> {
Show 13 variants
ParenType(ParenType<'a>),
TupleType(TupleType<'a>),
NeverType(NeverType<'a>),
PathType(PathType<'a>),
PointerType(PointerType<'a>),
ArrayType(ArrayType<'a>),
SliceType(SliceType<'a>),
ReferenceType(ReferenceType<'a>),
PlaceholderType(PlaceholderType<'a>),
FnPointerType(FnPointerType<'a>),
ForType(ForType<'a>),
ImplTraitType(ImplTraitType<'a>),
DynTraitType(DynTraitType<'a>),
}
Variants
ParenType(ParenType<'a>)
TupleType(TupleType<'a>)
NeverType(NeverType<'a>)
PathType(PathType<'a>)
PointerType(PointerType<'a>)
ArrayType(ArrayType<'a>)
SliceType(SliceType<'a>)
ReferenceType(ReferenceType<'a>)
PlaceholderType(PlaceholderType<'a>)
FnPointerType(FnPointerType<'a>)
ForType(ForType<'a>)
ImplTraitType(ImplTraitType<'a>)
DynTraitType(DynTraitType<'a>)
Trait Implementations
sourceimpl<'a> AstNode<'a> for TypeRef<'a>
impl<'a> AstNode<'a> for TypeRef<'a>
fn cast(syntax: SyntaxNodeRef<'a>) -> Option<Self>
fn syntax(self) -> SyntaxNodeRef<'a>
sourceimpl<'a> From<TypeRef<'a>> for TypeRefNode
impl<'a> From<TypeRef<'a>> for TypeRefNode
sourcefn from(ast: TypeRef<'a>) -> TypeRefNode
fn from(ast: TypeRef<'a>) -> TypeRefNode
Converts to this type from the input type.
impl<'a> Copy for TypeRef<'a>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for TypeRef<'a>
impl<'a> Send for TypeRef<'a>
impl<'a> Sync for TypeRef<'a>
impl<'a> Unpin for TypeRef<'a>
impl<'a> !UnwindSafe for TypeRef<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more