pub struct TextSlice<'a> {
pub text: &'a str,
pub location: FileLocation,
}
Fields§
§text: &'a str
§location: FileLocation
Implementations§
Trait Implementations§
impl<'a> StructuralPartialEq for TextSlice<'a>
Auto Trait Implementations§
impl<'a> Freeze for TextSlice<'a>
impl<'a> RefUnwindSafe for TextSlice<'a>
impl<'a> Send for TextSlice<'a>
impl<'a> Sync for TextSlice<'a>
impl<'a> Unpin for TextSlice<'a>
impl<'a> UnwindSafe for TextSlice<'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