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 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<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
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
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