pub struct SourceConstructFactV1 { /* private fields */ }Expand description
One extension/custom/unmodeled source construct declaration.
Implementations§
Source§impl SourceConstructFactV1
impl SourceConstructFactV1
Sourcepub fn new(
source_order_index: usize,
kind: SourceConstructKindV1,
name: SourceTextV1,
required: bool,
count: u64,
disposition: SourceLoaderDispositionV1,
provenance: SourceProvenanceV1,
) -> Result<Self, SourceFactsError>
pub fn new( source_order_index: usize, kind: SourceConstructKindV1, name: SourceTextV1, required: bool, count: u64, disposition: SourceLoaderDispositionV1, provenance: SourceProvenanceV1, ) -> Result<Self, SourceFactsError>
Construct one source construct fact.
§Errors
Returns SourceFactsError::ZeroConstructCount because every retained
row is positive-presence evidence.
Sourcepub const fn source_order_index(&self) -> usize
pub const fn source_order_index(&self) -> usize
Zero-based deterministic row order in this projection domain.
Sourcepub const fn kind(&self) -> SourceConstructKindV1
pub const fn kind(&self) -> SourceConstructKindV1
Construct kind.
Sourcepub const fn name(&self) -> &SourceTextV1
pub const fn name(&self) -> &SourceTextV1
Bounded source construct spelling.
Sourcepub const fn required(&self) -> bool
pub const fn required(&self) -> bool
Whether the source declaration makes the construct required.
Sourcepub const fn count(&self) -> u64
pub const fn count(&self) -> u64
Number of source occurrences represented by this aggregate row.
Sourcepub const fn disposition(&self) -> SourceLoaderDispositionV1
pub const fn disposition(&self) -> SourceLoaderDispositionV1
AnimSmith-loader treatment.
Sourcepub const fn provenance(&self) -> &SourceProvenanceV1
pub const fn provenance(&self) -> &SourceProvenanceV1
Source provenance.
Trait Implementations§
Source§impl Clone for SourceConstructFactV1
impl Clone for SourceConstructFactV1
Source§fn clone(&self) -> SourceConstructFactV1
fn clone(&self) -> SourceConstructFactV1
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 SourceConstructFactV1
impl Debug for SourceConstructFactV1
impl Eq for SourceConstructFactV1
Source§impl PartialEq for SourceConstructFactV1
impl PartialEq for SourceConstructFactV1
impl StructuralPartialEq for SourceConstructFactV1
Auto Trait Implementations§
impl Freeze for SourceConstructFactV1
impl RefUnwindSafe for SourceConstructFactV1
impl Send for SourceConstructFactV1
impl Sync for SourceConstructFactV1
impl Unpin for SourceConstructFactV1
impl UnsafeUnpin for SourceConstructFactV1
impl UnwindSafe for SourceConstructFactV1
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