pub struct TypeDeclaration {
pub exported: bool,
pub name: Identifier,
pub generics_span: Option<Span>,
pub type_span: Span,
pub span: Span,
}Expand description
A type Foo = ... declaration (Luau).
This is the lightweight version stored in the statement list.
For the fully resolved type expression, see TypeDeclarationFull.
Fields§
§exported: boolWhether this was declared with export.
name: IdentifierThe name of the type alias.
generics_span: Option<Span>The span of the generic parameters, if any.
type_span: SpanThe span of the type expression on the right side.
span: SpanWhere the whole declaration appears in the source.
Implementations§
Trait Implementations§
Source§impl Clone for TypeDeclaration
impl Clone for TypeDeclaration
Source§fn clone(&self) -> TypeDeclaration
fn clone(&self) -> TypeDeclaration
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TypeDeclaration
impl Debug for TypeDeclaration
Source§impl PartialEq for TypeDeclaration
impl PartialEq for TypeDeclaration
impl StructuralPartialEq for TypeDeclaration
Auto Trait Implementations§
impl Freeze for TypeDeclaration
impl RefUnwindSafe for TypeDeclaration
impl Send for TypeDeclaration
impl Sync for TypeDeclaration
impl Unpin for TypeDeclaration
impl UnsafeUnpin for TypeDeclaration
impl UnwindSafe for TypeDeclaration
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