pub struct Source {
pub file: String,
pub span: Option<Span>,
}Expand description
Pointer into a Document by URI plus optional span.
Serialized on the wire on Group and
StoredEntity provenance fields.
Fields§
§file: StringURI of the source Document in the manual’s source layer.
span: Option<Span>Optional line/column span within the document.
Trait Implementations§
impl Eq for Source
impl StructuralPartialEq for Source
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnsafeUnpin for Source
impl UnwindSafe for Source
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