pub struct IntegrityChecker;Expand description
Fundamental integrity checker
Implementations§
Source§impl IntegrityChecker
impl IntegrityChecker
Sourcepub fn check_memory_safety(
exit_signal: Option<i32>,
stderr: &str,
) -> IntegrityCheckResult
pub fn check_memory_safety( exit_signal: Option<i32>, stderr: &str, ) -> IntegrityCheckResult
F-INT-001: Check for memory safety violations Returns true if no unsafe memory access detected
Sourcepub fn check_process_termination(
exit_code: Option<i32>,
timed_out: bool,
has_output: bool,
) -> IntegrityCheckResult
pub fn check_process_termination( exit_code: Option<i32>, timed_out: bool, has_output: bool, ) -> IntegrityCheckResult
F-INT-002: Check process termination
Sourcepub fn check_tensor_validity(values: &[f32]) -> IntegrityCheckResult
pub fn check_tensor_validity(values: &[f32]) -> IntegrityCheckResult
F-INT-003: Check tensor validity (delegates to PatternDetector)
Sourcepub fn check_format_fidelity(
original_hash: &str,
roundtrip_hash: &str,
) -> IntegrityCheckResult
pub fn check_format_fidelity( original_hash: &str, roundtrip_hash: &str, ) -> IntegrityCheckResult
F-INT-004: Check format fidelity (round-trip)
Sourcepub fn check_determinism(
run1_output: &str,
run2_output: &str,
seed: u64,
) -> IntegrityCheckResult
pub fn check_determinism( run1_output: &str, run2_output: &str, seed: u64, ) -> IntegrityCheckResult
F-INT-005: Check determinism (same seed = same output)
Auto Trait Implementations§
impl Freeze for IntegrityChecker
impl RefUnwindSafe for IntegrityChecker
impl Send for IntegrityChecker
impl Sync for IntegrityChecker
impl Unpin for IntegrityChecker
impl UnwindSafe for IntegrityChecker
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more