pub enum SourceOrigin {
Authored(Span),
Omitted,
}Expand description
Whether a semantic value was authored or supplied by a language default.
Variants§
Authored(Span)
The value was written in source at this end-exclusive span.
Omitted
The value was omitted from source.
Implementations§
Trait Implementations§
Source§impl Clone for SourceOrigin
impl Clone for SourceOrigin
Source§fn clone(&self) -> SourceOrigin
fn clone(&self) -> SourceOrigin
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SourceOrigin
Source§impl Debug for SourceOrigin
impl Debug for SourceOrigin
impl Eq for SourceOrigin
Source§impl PartialEq for SourceOrigin
impl PartialEq for SourceOrigin
impl StructuralPartialEq for SourceOrigin
Auto Trait Implementations§
impl Freeze for SourceOrigin
impl RefUnwindSafe for SourceOrigin
impl Send for SourceOrigin
impl Sync for SourceOrigin
impl Unpin for SourceOrigin
impl UnsafeUnpin for SourceOrigin
impl UnwindSafe for SourceOrigin
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