Struct garden_lang_parser::ast::TypeHint
source · pub struct TypeHint {
pub sym: TypeSymbol,
pub args: Vec<TypeHint>,
pub position: Position,
}Expand description
Represents a type name in source code. This might be a concrete
type, such as List<Int>, or may refer to generics
e.g. List<T>.
Fields§
§sym: TypeSymbol§args: Vec<TypeHint>§position: PositionImplementations§
Trait Implementations§
impl Eq for TypeHint
impl StructuralPartialEq for TypeHint
Auto Trait Implementations§
impl Freeze for TypeHint
impl RefUnwindSafe for TypeHint
impl Send for TypeHint
impl Sync for TypeHint
impl Unpin for TypeHint
impl UnwindSafe for TypeHint
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)