pub struct Source<'q> {
pub id: SourceId,
pub kind: &'q SourceKind,
pub content: &'q str,
}Expand description
A borrowed view of a source: id, kind, and content.
Fields§
§id: SourceId§kind: &'q SourceKind§content: &'q strImplementations§
Trait Implementations§
Auto Trait Implementations§
impl<'q> Freeze for Source<'q>
impl<'q> RefUnwindSafe for Source<'q>
impl<'q> Send for Source<'q>
impl<'q> Sync for Source<'q>
impl<'q> Unpin for Source<'q>
impl<'q> UnwindSafe for Source<'q>
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