Struct naga::Span [−][src]
pub struct Span { /* fields omitted */ }
Expand description
A source code span, used for error reporting.
Implementations
Creates a new Span
from a range of byte indices
Note: end is exclusive, it doesn’t belong to the Span
Modifies self
to contain the smallest Span
possible that
contains both self
and other
Returns the smallest Span
possible that contains all the Span
s
defined in the from
iterator
Converts self
to a range if the span is not unknown
Check wether self
was defined or is a default/unknown span
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Span
impl UnwindSafe for Span
Blanket Implementations
Mutably borrows from an owned value. Read more