Struct kasm::parser::DeclaredSymbol
source · pub struct DeclaredSymbol {
pub declared_span: Span,
pub binding: Option<SymBind>,
pub sym_type: SymbolType,
pub value: SymbolValue,
}
Fields§
§declared_span: Span
§binding: Option<SymBind>
§sym_type: SymbolType
§value: SymbolValue
Implementations§
source§impl DeclaredSymbol
impl DeclaredSymbol
pub fn new( span: Span, binding: Option<SymBind>, sym_type: SymbolType, value: SymbolValue ) -> Self
Trait Implementations§
source§impl Clone for DeclaredSymbol
impl Clone for DeclaredSymbol
source§fn clone(&self) -> DeclaredSymbol
fn clone(&self) -> DeclaredSymbol
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