pub struct GenericType<'ast> {
pub location: Location,
pub name: AstName<'ast>,
pub default_value: Option<Type<'ast>>,
}Fields§
§location: Location§name: AstName<'ast>§default_value: Option<Type<'ast>>Implementations§
Source§impl GenericType<'_>
impl GenericType<'_>
pub fn visit<V: AstVisitor>(&self, visitor: &mut V)
Trait Implementations§
Source§impl<'ast> Debug for GenericType<'ast>
impl<'ast> Debug for GenericType<'ast>
Source§impl<'ast> PartialEq for GenericType<'ast>
impl<'ast> PartialEq for GenericType<'ast>
impl<'ast> StructuralPartialEq for GenericType<'ast>
Auto Trait Implementations§
impl<'ast> !Send for GenericType<'ast>
impl<'ast> !Sync for GenericType<'ast>
impl<'ast> Freeze for GenericType<'ast>
impl<'ast> RefUnwindSafe for GenericType<'ast>
impl<'ast> Unpin for GenericType<'ast>
impl<'ast> UnsafeUnpin for GenericType<'ast>
impl<'ast> UnwindSafe for GenericType<'ast>
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