pub enum ExplanationContent {
SharedEntry {
support: usize,
path: Vec<ExplanationBlockStep>,
item_index: usize,
},
DeclarationMember {
support: usize,
item_index: usize,
},
Entry {
block: Block,
},
Block {
block: Block,
},
}Expand description
Original content copied for one evidence owner, not a navigation selection.
Variants§
Physical owner stored once because nested selected contexts also use its body; not a declaration-group or alias relationship.
DeclarationMember
Original owner already present in the document-local support pool. Positions remain owner-local (outer item zero), resolved through this reference rather than reinterpreted against the whole group.
Fields
Entry
One original entry in a single-item list retaining its numbering/layout.
Block
One literal-support block belonging to the reported root/section.
Implementations§
Source§impl ExplanationContent
impl ExplanationContent
Sourcepub fn referenced_owner<'a>(
&self,
pool: &'a [ExplanationSupport],
) -> Option<EntryOwner<'a>>
pub fn referenced_owner<'a>( &self, pool: &'a [ExplanationSupport], ) -> Option<EntryOwner<'a>>
Resolve this source-qualified reference to its original physical owner.
Sourcepub fn resolve_range<'a>(
&'a self,
pool: &'a [ExplanationSupport],
range: &ExplanationContentRange,
) -> Option<ExplanationTextRoot<'a>>
pub fn resolve_range<'a>( &'a self, pool: &'a [ExplanationSupport], range: &ExplanationContentRange, ) -> Option<ExplanationTextRoot<'a>>
Resolve an owner-local position without copying the shared source body.
Trait Implementations§
Source§impl Clone for ExplanationContent
impl Clone for ExplanationContent
Source§fn clone(&self) -> ExplanationContent
fn clone(&self) -> ExplanationContent
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 ExplanationContent
impl Debug for ExplanationContent
Source§impl<'de> Deserialize<'de> for ExplanationContent
impl<'de> Deserialize<'de> for ExplanationContent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ExplanationContent
Source§impl JsonSchema for ExplanationContent
impl JsonSchema for ExplanationContent
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ExplanationContent
impl PartialEq for ExplanationContent
Source§impl Serialize for ExplanationContent
impl Serialize for ExplanationContent
impl StructuralPartialEq for ExplanationContent
Auto Trait Implementations§
impl Freeze for ExplanationContent
impl RefUnwindSafe for ExplanationContent
impl Send for ExplanationContent
impl Sync for ExplanationContent
impl Unpin for ExplanationContent
impl UnsafeUnpin for ExplanationContent
impl UnwindSafe for ExplanationContent
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