pub struct String<'a> {
pub value: &'a str,
pub span: SourceSpan,
}
Expand description
Represents a string in the AST.
Fields§
§value: &'a str
The value of the string (without quotes).
span: SourceSpan
The span of the string.
Trait Implementations§
impl<'a> Copy for String<'a>
Auto Trait Implementations§
impl<'a> Freeze for String<'a>
impl<'a> RefUnwindSafe for String<'a>
impl<'a> Send for String<'a>
impl<'a> Sync for String<'a>
impl<'a> Unpin for String<'a>
impl<'a> UnwindSafe for String<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more