pub type Span = BaseSpan<()>;Aliased Type§
pub struct Span {
pub start: u32,
pub end: u32,
pub source: (),
}Fields§
§start: u32§end: u32§source: ()Implementations§
Source§impl Span
impl Span
Sourcepub fn is_adjacent_to(&self, other: impl Into<Start>) -> bool
pub fn is_adjacent_to(&self, other: impl Into<Start>) -> bool
Returns whether the end of self is the start of other
Sourcepub fn union(&self, end: impl Into<End>) -> Span
pub fn union(&self, end: impl Into<End>) -> Span
Returns a new Span which starts at the start of self a ends at the end of other