pub struct AnalyzerDescriptor { /* private fields */ }Expand description
Immutable resolved JSON with a verified fingerprint and explicit compatibility revisions.
Implementations§
Source§impl AnalyzerDescriptor
impl AnalyzerDescriptor
pub fn resolve( config: &Analyzer, length_policy: TokenLengthPolicy, limits: AnalyzerLimits, ) -> AnalysisResult<Arc<Self>>
Sourcepub fn from_json(
json: &str,
limits: AnalyzerLimits,
) -> AnalysisResult<Arc<Self>>
pub fn from_json( json: &str, limits: AnalyzerLimits, ) -> AnalysisResult<Arc<Self>>
Restore resolved inputs without opening any file or substituting current mutable definitions.
pub fn fingerprint(&self) -> AnalyzerFingerprint
pub fn length_policy(&self) -> TokenLengthPolicy
pub fn canonical_json(&self) -> &str
Sourcepub fn configuration(&self) -> AnalysisResult<Analyzer>
pub fn configuration(&self) -> AnalysisResult<Analyzer>
Return the resolved configuration for diagnostics or compatibility APIs. Execute a retained compiled handle when exact resource ownership is required.
Trait Implementations§
Source§impl Debug for AnalyzerDescriptor
impl Debug for AnalyzerDescriptor
Auto Trait Implementations§
impl Freeze for AnalyzerDescriptor
impl RefUnwindSafe for AnalyzerDescriptor
impl Send for AnalyzerDescriptor
impl Sync for AnalyzerDescriptor
impl Unpin for AnalyzerDescriptor
impl UnsafeUnpin for AnalyzerDescriptor
impl UnwindSafe for AnalyzerDescriptor
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