pub trait MayHaveSpan {
// Required methods
fn possible_span(&self) -> Option<&Z80Span>;
fn span(&self) -> &Z80Span;
fn has_span(&self) -> bool;
}
Expand description
Trait to handle the span of listing elements
pub trait MayHaveSpan {
// Required methods
fn possible_span(&self) -> Option<&Z80Span>;
fn span(&self) -> &Z80Span;
fn has_span(&self) -> bool;
}
Trait to handle the span of listing elements