pub struct PythonAdapter;Expand description
The Python verifier-suite adapter (pyright / mypy / pytest).
Trait Implementations§
Source§impl Clone for PythonAdapter
impl Clone for PythonAdapter
Source§fn clone(&self) -> PythonAdapter
fn clone(&self) -> PythonAdapter
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 PythonAdapter
impl Debug for PythonAdapter
Source§impl Default for PythonAdapter
impl Default for PythonAdapter
Source§fn default() -> PythonAdapter
fn default() -> PythonAdapter
Returns the “default value” for a type. Read more
Source§impl LanguageAdapter for PythonAdapter
impl LanguageAdapter for PythonAdapter
fn language(&self) -> CodingLanguage
Source§fn diagnostic_sensor(&self) -> SensorRef
fn diagnostic_sensor(&self) -> SensorRef
The primary diagnostic sensor for this language.
Source§fn parse_diagnostics(
&self,
node_id: &str,
generation: u32,
raw: &str,
) -> Vec<ResidualEvent>
fn parse_diagnostics( &self, node_id: &str, generation: u32, raw: &str, ) -> Vec<ResidualEvent>
Parse raw diagnostic output into typed residuals.
Source§fn correction_for(
&self,
residual: &ResidualEvent,
) -> Option<CorrectionDirection>
fn correction_for( &self, residual: &ResidualEvent, ) -> Option<CorrectionDirection>
Map a residual to a correction direction, or
None when there is none.Source§fn smoke_invocations(&self, workspace: &Path) -> Vec<SmokeInvocation>
fn smoke_invocations(&self, workspace: &Path) -> Vec<SmokeInvocation>
Runtime smoke invocations to exercise the built artifact’s entrypoints
(PSP-8 runtime probe). Default: none — a new adapter opts in by overriding
this. The runtime executes the returned commands from
workspace.Source§fn classify_runtime(
&self,
node_id: &str,
generation: u32,
invocation: &SmokeInvocation,
exit_success: bool,
output: &str,
) -> Vec<ResidualEvent>
fn classify_runtime( &self, node_id: &str, generation: u32, invocation: &SmokeInvocation, exit_success: bool, output: &str, ) -> Vec<ResidualEvent>
Classify the output of a smoke invocation into
Runtime residuals.
Default: shared crash-marker + non-zero-exit detection.Auto Trait Implementations§
impl Freeze for PythonAdapter
impl RefUnwindSafe for PythonAdapter
impl Send for PythonAdapter
impl Sync for PythonAdapter
impl Unpin for PythonAdapter
impl UnsafeUnpin for PythonAdapter
impl UnwindSafe for PythonAdapter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.