pub struct ResolvedSourceObject {
pub object_id: String,
pub kind: ResolvedSourceObjectKind,
pub provenance: ResolvedSourceObjectProvenance,
pub authored_ordinal: usize,
pub kind_ordinal: usize,
pub statement_ordinal: usize,
pub content_sha256: String,
pub span: ResolvedSourceSpan,
pub primary_name: Option<String>,
pub arity: Option<usize>,
}Expand description
One parsed source object and its exact authored source location.
Fields§
§object_id: StringStable identity within the content-addressed module.
kind: ResolvedSourceObjectKindParsed construct category.
provenance: ResolvedSourceObjectProvenanceWhether the object was authored or generated by a compiler transform.
Zero-based order among all objects in the module.
kind_ordinal: usizeZero-based order among objects of the same kind in the module.
statement_ordinal: usizeZero-based order of the source statement containing this object.
content_sha256: StringSHA-256 of the exact statement bytes.
span: ResolvedSourceSpanParser-owned byte and line/column span.
primary_name: Option<String>Primary declared or head name when the construct has one.
arity: Option<usize>Declared or head arity when the construct has one.
Trait Implementations§
Source§impl Clone for ResolvedSourceObject
impl Clone for ResolvedSourceObject
Source§fn clone(&self) -> ResolvedSourceObject
fn clone(&self) -> ResolvedSourceObject
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 moreSource§impl Debug for ResolvedSourceObject
impl Debug for ResolvedSourceObject
impl Eq for ResolvedSourceObject
Source§impl PartialEq for ResolvedSourceObject
impl PartialEq for ResolvedSourceObject
Source§impl Serialize for ResolvedSourceObject
impl Serialize for ResolvedSourceObject
impl StructuralPartialEq for ResolvedSourceObject
Auto Trait Implementations§
impl Freeze for ResolvedSourceObject
impl RefUnwindSafe for ResolvedSourceObject
impl Send for ResolvedSourceObject
impl Sync for ResolvedSourceObject
impl Unpin for ResolvedSourceObject
impl UnsafeUnpin for ResolvedSourceObject
impl UnwindSafe for ResolvedSourceObject
Blanket Implementations§
impl<T> Allocation for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more