Struct essential_types::solution::Solution
source · pub struct Solution {
pub data: Vec<SolutionData>,
}
Expand description
A solution to predicates.
Fields§
§data: Vec<SolutionData>
The input data for each predicate.
Implementations§
source§impl Solution
impl Solution
sourcepub fn state_mutations_len(&self) -> usize
pub fn state_mutations_len(&self) -> usize
Get the length of all the state mutations in the solution.
sourcepub fn transient_data_len(&self) -> usize
pub fn transient_data_len(&self) -> usize
Get the length of all the transient data in the solution.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Solution
impl<'de> Deserialize<'de> for Solution
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 Ord for Solution
impl Ord for Solution
source§impl PartialEq for Solution
impl PartialEq for Solution
source§impl PartialOrd for Solution
impl PartialOrd for Solution
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Solution
impl StructuralPartialEq for Solution
Auto Trait Implementations§
impl Freeze for Solution
impl RefUnwindSafe for Solution
impl Send for Solution
impl Sync for Solution
impl Unpin for Solution
impl UnwindSafe for Solution
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)