Str

Type Alias Str 

Source
pub type Str<'s> = Spanned<&'s str>;
Expand description

Borrowed string like "abc" + span information

Aliased Type§

pub struct Str<'s> { /* private fields */ }

Trait Implementations§

Source§

impl Borrow<str> for Str<'_>

Source§

fn borrow(&self) -> &str

Immutably borrows from an owned value. Read more