pub struct SolutionSet {
pub solutions: Vec<Solution>,
}
Expand description
A set of Solution
s.
A SolutionSet
’s ContentAddress
is the same regardless of the ordering of its solutions.
SolutionSet
s may be safely merged with one another in the case that there are no Key
conflicts in the proposed state_mutations
and/or post-state
reads within the predicate_to_solve
.
Fields§
§solutions: Vec<Solution>
The input data for each predicate.
Implementations§
Source§impl SolutionSet
impl SolutionSet
Sourcepub fn state_mutations_len(&self) -> usize
pub fn state_mutations_len(&self) -> usize
Get the sum of all state mutations within the set of solutions.
Trait Implementations§
Source§impl Address for SolutionSet
impl Address for SolutionSet
Source§fn content_address(&self) -> ContentAddress
fn content_address(&self) -> ContentAddress
Produce the content address for self.
Source§impl Clone for SolutionSet
impl Clone for SolutionSet
Source§fn clone(&self) -> SolutionSet
fn clone(&self) -> SolutionSet
Returns a duplicate 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 moreSource§impl Debug for SolutionSet
impl Debug for SolutionSet
Source§impl<'de> Deserialize<'de> for SolutionSet
impl<'de> Deserialize<'de> for SolutionSet
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SolutionSet, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SolutionSet, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for SolutionSet
impl Hash for SolutionSet
Source§impl Ord for SolutionSet
impl Ord for SolutionSet
Source§fn cmp(&self, other: &SolutionSet) -> Ordering
fn cmp(&self, other: &SolutionSet) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SolutionSet
impl PartialEq for SolutionSet
Source§impl PartialOrd for SolutionSet
impl PartialOrd for SolutionSet
Source§impl Serialize for SolutionSet
impl Serialize for SolutionSet
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for SolutionSet
impl StructuralPartialEq for SolutionSet
Auto Trait Implementations§
impl Freeze for SolutionSet
impl RefUnwindSafe for SolutionSet
impl Send for SolutionSet
impl Sync for SolutionSet
impl Unpin for SolutionSet
impl UnwindSafe for SolutionSet
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> 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