Struct ThresholdValues
pub struct ThresholdValues<A: Arch> { /* private fields */ }
Expand description
A set of I/O examples for a destination, that identify the specific behavior of that destination.
For example, if a destination is the result of a x < y
comparison, the I/O examples would contain (at least) one example where x < y
, one example where x + 1 = y
, one example where x = y
and one example where !(x < y)
.
Implementations§
§impl<A: Arch> ThresholdValues<A>
impl<A: Arch> ThresholdValues<A>
pub fn infer<O: Oracle<A>, M: MappableArea, R: Rng>( oracle: &mut O, rng: &mut R, state_gen: &StateGen<'_, A, M>, dataflows: &Dataflows<A, ()>, ) -> ThresholdValues<A>
Trait Implementations§
§impl<A: Clone + Arch> Clone for ThresholdValues<A>
impl<A: Clone + Arch> Clone for ThresholdValues<A>
§fn clone(&self) -> ThresholdValues<A>
fn clone(&self) -> ThresholdValues<A>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl<A: Debug + Arch> Debug for ThresholdValues<A>
impl<A: Debug + Arch> Debug for ThresholdValues<A>
§impl<A: Default + Arch> Default for ThresholdValues<A>
impl<A: Default + Arch> Default for ThresholdValues<A>
§fn default() -> ThresholdValues<A>
fn default() -> ThresholdValues<A>
Returns the “default value” for a type. Read more
§impl<'de, A: Arch> Deserialize<'de> for ThresholdValues<A>
impl<'de, A: Arch> Deserialize<'de> for ThresholdValues<A>
§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl<A: PartialEq + Arch> PartialEq for ThresholdValues<A>
impl<A: PartialEq + Arch> PartialEq for ThresholdValues<A>
§impl<A: Arch> Serialize for ThresholdValues<A>where
ThresholdValueKey<A>: Serialize,
impl<A: Arch> Serialize for ThresholdValues<A>where
ThresholdValueKey<A>: Serialize,
impl<A: Arch> StructuralPartialEq for ThresholdValues<A>
Auto Trait Implementations§
impl<A> Freeze for ThresholdValues<A>
impl<A> RefUnwindSafe for ThresholdValues<A>
impl<A> Send for ThresholdValues<A>
impl<A> Sync for ThresholdValues<A>
impl<A> Unpin for ThresholdValues<A>
impl<A> UnwindSafe for ThresholdValues<A>
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, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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