pub struct Type<'ast> { /* private fields */ }Implementations§
Source§impl<'ast> Type<'ast>
impl<'ast> Type<'ast>
pub fn as_ptr(self) -> *const ()
pub fn location(self) -> Location
pub fn kind(&self) -> TypeKind<'ast>
pub fn visit<V: AstVisitor>(self, visitor: &mut V)
pub fn as_reference(self) -> Option<&'ast TypeReference<'ast>>
pub fn as_table(self) -> Option<&'ast TypeTable<'ast>>
pub fn as_function(self) -> Option<&'ast TypeFunction<'ast>>
pub fn as_typeof(self) -> Option<&'ast TypeTypeof<'ast>>
pub fn as_singleton_bool(self) -> Option<&'ast TypeSingletonBool<'ast>>
pub fn as_singleton_string(self) -> Option<&'ast TypeSingletonString<'ast>>
pub fn as_group(self) -> Option<&'ast TypeGroup<'ast>>
pub fn as_union(self) -> Option<&'ast TypeUnion<'ast>>
pub fn as_intersection(self) -> Option<&'ast TypeIntersection<'ast>>
pub fn as_error(self) -> Option<&'ast TypeError<'ast>>
Trait Implementations§
impl<'ast> Copy for Type<'ast>
Auto Trait Implementations§
impl<'ast> !Send for Type<'ast>
impl<'ast> !Sync for Type<'ast>
impl<'ast> Freeze for Type<'ast>
impl<'ast> RefUnwindSafe for Type<'ast>
impl<'ast> Unpin for Type<'ast>
impl<'ast> UnsafeUnpin for Type<'ast>
impl<'ast> UnwindSafe for Type<'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