pub struct TypeDeclaration {
pub name: Identifier,
pub variants: Box<[SpannedItem<TypeVariant>]>,
pub visibility: Visibility,
}
Fields§
§name: Identifier
§variants: Box<[SpannedItem<TypeVariant>]>
§visibility: Visibility
Implementations§
Source§impl TypeDeclaration
impl TypeDeclaration
pub fn is_exported(&self) -> bool
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 PrettyPrint for TypeDeclaration
impl PrettyPrint for TypeDeclaration
fn pretty_print(&self, interner: &SymbolInterner, indentation: usize) -> String
Auto Trait Implementations§
impl Freeze for TypeDeclaration
impl RefUnwindSafe for TypeDeclaration
impl Send for TypeDeclaration
impl Sync for TypeDeclaration
impl Unpin 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