pub struct OffloadVerdict {
pub function_index: u32,
pub verdict: DetectorVerdict,
pub op_count: usize,
pub v128_ratio: f32,
}Expand description
A single classification result for one function body.
Fields§
§function_index: u32Function index inside the Wasm module.
verdict: DetectorVerdictDetector classification.
op_count: usizeNumber of operators inspected.
v128_ratio: f32Fraction of v128 ops (0.0-1.0).
Trait Implementations§
Source§impl Clone for OffloadVerdict
impl Clone for OffloadVerdict
Source§fn clone(&self) -> OffloadVerdict
fn clone(&self) -> OffloadVerdict
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 OffloadVerdict
impl Debug for OffloadVerdict
Source§impl PartialEq for OffloadVerdict
impl PartialEq for OffloadVerdict
Source§fn eq(&self, other: &OffloadVerdict) -> bool
fn eq(&self, other: &OffloadVerdict) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OffloadVerdict
Auto Trait Implementations§
impl Freeze for OffloadVerdict
impl RefUnwindSafe for OffloadVerdict
impl Send for OffloadVerdict
impl Sync for OffloadVerdict
impl Unpin for OffloadVerdict
impl UnsafeUnpin for OffloadVerdict
impl UnwindSafe for OffloadVerdict
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<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