Struct sway_core::language::ty::TyConstantDeclaration
source · pub struct TyConstantDeclaration {
pub name: Ident,
pub value: TyExpression,
pub visibility: Visibility,
pub return_type: TypeId,
pub attributes: AttributesMap,
pub span: Span,
}
Fields§
§name: Ident
§value: TyExpression
§visibility: Visibility
§return_type: TypeId
§attributes: AttributesMap
§span: Span
Trait Implementations§
source§impl Clone for TyConstantDeclaration
impl Clone for TyConstantDeclaration
source§fn clone(&self) -> TyConstantDeclaration
fn clone(&self) -> TyConstantDeclaration
Returns a copy 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 more