pub fn borrow_clone_span<'a, 'b: 'a>(span: &'b Span<'a>) -> Span<'a>Expand description
Convert a &Span to a Span by using Cow::Borrowed.
Note that a normal Span::clone (and by extension Cow::clone) will preserve the Cow Variant.
pub fn borrow_clone_span<'a, 'b: 'a>(span: &'b Span<'a>) -> Span<'a>Convert a &Span to a Span by using Cow::Borrowed.
Note that a normal Span::clone (and by extension Cow::clone) will preserve the Cow Variant.