pub struct SourceResourceReferenceV1 { /* private fields */ }Expand description
One source resource declaration, not a resolved dependency identity.
Implementations§
Source§impl SourceResourceReferenceV1
impl SourceResourceReferenceV1
Sourcepub fn new(
source_order_index: usize,
kind: SourceResourceKindV1,
source_index: u64,
locator: SourceResourceLocatorV1,
disposition: SourceLoaderDispositionV1,
provenance: SourceProvenanceV1,
) -> Self
pub fn new( source_order_index: usize, kind: SourceResourceKindV1, source_index: u64, locator: SourceResourceLocatorV1, disposition: SourceLoaderDispositionV1, provenance: SourceProvenanceV1, ) -> Self
Construct one stable declaration row.
Sourcepub const fn source_order_index(&self) -> usize
pub const fn source_order_index(&self) -> usize
Zero-based deterministic declaration order in this projection domain.
Sourcepub const fn kind(&self) -> SourceResourceKindV1
pub const fn kind(&self) -> SourceResourceKindV1
Resource declaration kind.
Sourcepub const fn source_index(&self) -> u64
pub const fn source_index(&self) -> u64
Stable source/parser declaration index.
Sourcepub const fn locator(&self) -> &SourceResourceLocatorV1
pub const fn locator(&self) -> &SourceResourceLocatorV1
Redacted declaration classification.
Sourcepub const fn disposition(&self) -> SourceLoaderDispositionV1
pub const fn disposition(&self) -> SourceLoaderDispositionV1
AnimSmith-loader treatment of the declaration/content domain.
Sourcepub const fn provenance(&self) -> &SourceProvenanceV1
pub const fn provenance(&self) -> &SourceProvenanceV1
Source provenance.
Trait Implementations§
Source§impl Clone for SourceResourceReferenceV1
impl Clone for SourceResourceReferenceV1
Source§fn clone(&self) -> SourceResourceReferenceV1
fn clone(&self) -> SourceResourceReferenceV1
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 SourceResourceReferenceV1
impl Debug for SourceResourceReferenceV1
impl Eq for SourceResourceReferenceV1
impl StructuralPartialEq for SourceResourceReferenceV1
Auto Trait Implementations§
impl Freeze for SourceResourceReferenceV1
impl RefUnwindSafe for SourceResourceReferenceV1
impl Send for SourceResourceReferenceV1
impl Sync for SourceResourceReferenceV1
impl Unpin for SourceResourceReferenceV1
impl UnsafeUnpin for SourceResourceReferenceV1
impl UnwindSafe for SourceResourceReferenceV1
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