pub struct Origin {
pub codec: CodecId,
pub source: SourceId,
pub span: Span,
pub trivia: Vec<Trivia>,
}Expand description
Source provenance of an expression: which codec, source, span, and trivia.
Fields§
§codec: CodecIdThe codec that read the expression.
source: SourceIdThe source the expression was read from.
span: SpanThe byte span within the source.
trivia: Vec<Trivia>The surrounding whitespace and comment trivia.
Trait Implementations§
impl Eq for Origin
impl StructuralPartialEq for Origin
Auto Trait Implementations§
impl Freeze for Origin
impl RefUnwindSafe for Origin
impl Send for Origin
impl Sync for Origin
impl Unpin for Origin
impl UnsafeUnpin for Origin
impl UnwindSafe for Origin
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