pub enum GlobalDecl {
Var(VarDecl),
Type(TypeDef),
Fn(FnDecl),
Extern(ExternDecl),
BeforeUpdate(Vec<Expr>),
AfterUpdate(Vec<Expr>),
Instantiation(Instantiation),
ChanPriority(ChanPriority),
Dynamic(DynamicDecl),
Comment(String),
}Expand description
A global declaration — one element of UTAP’s Declarations list
(parser.y:494), which is order-free and interleavable.
Variants§
Var(VarDecl)
A variable declaration.
Type(TypeDef)
A typedef.
Fn(FnDecl)
A function.
Extern(ExternDecl)
An import "lib" { … }; block.
BeforeUpdate(Vec<Expr>)
before_update { … }.
AfterUpdate(Vec<Expr>)
after_update { … }.
Instantiation(Instantiation)
A template instantiation.
ChanPriority(ChanPriority)
A channel-priority declaration.
Dynamic(DynamicDecl)
A dynamic-template declaration.
Comment(String)
A comment line, printed as // text.
Trait Implementations§
Source§impl Clone for GlobalDecl
impl Clone for GlobalDecl
Source§fn clone(&self) -> GlobalDecl
fn clone(&self) -> GlobalDecl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GlobalDecl
impl Debug for GlobalDecl
Source§impl Display for GlobalDecl
impl Display for GlobalDecl
Source§impl PartialEq for GlobalDecl
impl PartialEq for GlobalDecl
Source§fn eq(&self, other: &GlobalDecl) -> bool
fn eq(&self, other: &GlobalDecl) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GlobalDecl
Auto Trait Implementations§
impl Freeze for GlobalDecl
impl RefUnwindSafe for GlobalDecl
impl Send for GlobalDecl
impl Sync for GlobalDecl
impl Unpin for GlobalDecl
impl UnsafeUnpin for GlobalDecl
impl UnwindSafe for GlobalDecl
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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,
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.