Struct sway_core::language::ty::TyConstantDeclaration
source · pub struct TyConstantDeclaration {
pub name: Ident,
pub value: TyExpression,
pub visibility: Visibility,
pub return_type: TypeId,
pub is_configurable: bool,
pub attributes: AttributesMap,
pub type_ascription_span: Option<Span>,
pub span: Span,
}
Fields§
§name: Ident
§value: TyExpression
§visibility: Visibility
§return_type: TypeId
§is_configurable: bool
§attributes: AttributesMap
§type_ascription_span: Option<Span>
§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 moresource§impl Debug for TyConstantDeclaration
impl Debug for TyConstantDeclaration
source§impl From<TyConstantDeclaration> for (DeclWrapper, Span)
impl From<TyConstantDeclaration> for (DeclWrapper, Span)
source§fn from(value: TyConstantDeclaration) -> Self
fn from(value: TyConstantDeclaration) -> Self
Converts to this type from the input type.