pub struct ProbeResult {
pub encoded: String,
pub lossless: bool,
pub semantic_identity: bool,
pub semantic_id: Option<String>,
pub span_count: usize,
pub diagnostics: Vec<String>,
pub trusted_executable: bool,
pub alternates: Vec<Symbol>,
}Expand description
The outcome of a round-trip probe through one codec.
Fields§
§encoded: StringThe encoded form, rendered for display.
lossless: boolWhether decoding reproduced the original value.
semantic_identity: boolWhether the Prism parse/encode/reparse proof preserved semantic id.
semantic_id: Option<String>Stable semantic id from the Prism parse pass.
span_count: usizeNumber of source spans discovered by the Prism parse pass.
diagnostics: Vec<String>Loss and parse diagnostics collected by the Prism.
trusted_executable: boolWhether the inspected input is treated as trusted executable input.
alternates: Vec<Symbol>Suggested alternate codec surfaces for comparison.
Implementations§
Trait Implementations§
Source§impl Clone for ProbeResult
impl Clone for ProbeResult
Source§fn clone(&self) -> ProbeResult
fn clone(&self) -> ProbeResult
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 ProbeResult
impl Debug for ProbeResult
impl Eq for ProbeResult
Source§impl PartialEq for ProbeResult
impl PartialEq for ProbeResult
Source§fn eq(&self, other: &ProbeResult) -> bool
fn eq(&self, other: &ProbeResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProbeResult
Auto Trait Implementations§
impl Freeze for ProbeResult
impl RefUnwindSafe for ProbeResult
impl Send for ProbeResult
impl Sync for ProbeResult
impl Unpin for ProbeResult
impl UnsafeUnpin for ProbeResult
impl UnwindSafe for ProbeResult
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