Struct solang_parser::pt::TypeDefinition
source · pub struct TypeDefinition {
pub loc: Loc,
pub name: Identifier,
pub ty: Expression,
}Expand description
A user type definition.
type <name> is <ty>;
Fields§
§loc: LocThe code location.
name: IdentifierThe user-defined type name.
ty: ExpressionThe type expression.
Trait Implementations§
source§impl Clone for TypeDefinition
impl Clone for TypeDefinition
source§fn clone(&self) -> TypeDefinition
fn clone(&self) -> TypeDefinition
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 CodeLocation for TypeDefinition
impl CodeLocation for TypeDefinition
source§impl Debug for TypeDefinition
impl Debug for TypeDefinition
source§impl Display for TypeDefinition
impl Display for TypeDefinition
source§impl PartialEq<TypeDefinition> for TypeDefinition
impl PartialEq<TypeDefinition> for TypeDefinition
source§fn eq(&self, other: &TypeDefinition) -> bool
fn eq(&self, other: &TypeDefinition) -> bool
This method tests for
self and other values to be equal, and is used
by ==.