/// Join two spans creating the larger of the two spans.
///
/// # Examples
///
/// ```
/// use rune::ast::Span;
///
/// let a = Span::new(10, 12);
/// let b = Span::new(20, 22);
///
/// assert_eq!(a.join(b), Span::new(10, 22));
/// ```
Join two spans creating the larger of the two spans.
Join two spans creating the larger of the two spans .
pub fn join(self, other: Self) -> Self {
        Self {
            start: ByteIndex::min(self.start, other.start),
            end: ByteIndex::max(self.end, other.end),
        }
    }
pub fn join ( self , other : Self ) -> Self { Self { start : ByteIndex :: min ( self . start , other . start ) , end : ByteIndex :: max ( self . end , other . end ) , } }
Join two spans creating the larger of the two spans.
Join two spans creating the larger of the two spans .
self
other
Self
examples
None