pub struct ResolutionReport { /* private fields */ }Expand description
A complete, validated resolution result.
Every value of this type has passed the shared validator, whether it came
from super::ResolutionReportBuilder::finish or from deserialization, so
a consumer may read the slices positionally: an identifier is its own index.
Implementations§
Source§impl ResolutionReport
impl ResolutionReport
Sourcepub fn deserialize_with_limits<'de, D>(
deserializer: D,
limits: ResolutionReportLimits,
) -> Result<Self, D::Error>where
D: Deserializer<'de>,
pub fn deserialize_with_limits<'de, D>(
deserializer: D,
limits: ResolutionReportLimits,
) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize one report while bounding every retained top-level record.
Resolution records share limits.max_references: a validated report
carries exactly one record per reference. Ordinary Deserialize
delegates here with ResolutionReportLimits::default.
Sourcepub fn tier(&self) -> ResolutionTier
pub fn tier(&self) -> ResolutionTier
Which mechanism produced this report.
Sourcepub fn units(&self) -> &[ResolutionUnit]
pub fn units(&self) -> &[ResolutionUnit]
The report’s units, sorted by their stable key.
Sourcepub fn definitions(&self) -> &[SymbolDefinition]
pub fn definitions(&self) -> &[SymbolDefinition]
The report’s definitions, sorted by unit, span, kind, and name.
Sourcepub fn references(&self) -> &[SymbolReference]
pub fn references(&self) -> &[SymbolReference]
The report’s references, sorted by unit, span, kind, and text.
Sourcepub fn resolutions(&self) -> &[ResolutionRecord]
pub fn resolutions(&self) -> &[ResolutionRecord]
One record per reference, in reference order.
Trait Implementations§
Source§impl Clone for ResolutionReport
impl Clone for ResolutionReport
Source§fn clone(&self) -> ResolutionReport
fn clone(&self) -> ResolutionReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more