#[non_exhaustive]pub struct Evaluated<T> {
pub value: T,
pub ops: Option<u64>,
}Expand description
What an evaluation returns: the value and what it cost.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.value: TThe result.
ops: Option<u64>Operations the evaluation spent: Some when the budget feature is on
(zero for a folded constant), None otherwise.
Trait Implementations§
impl<T: PartialEq> StructuralPartialEq for Evaluated<T>
Auto Trait Implementations§
impl<T> Freeze for Evaluated<T>where
T: Freeze,
impl<T> RefUnwindSafe for Evaluated<T>where
T: RefUnwindSafe,
impl<T> Send for Evaluated<T>where
T: Send,
impl<T> Sync for Evaluated<T>where
T: Sync,
impl<T> Unpin for Evaluated<T>where
T: Unpin,
impl<T> UnsafeUnpin for Evaluated<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Evaluated<T>where
T: UnwindSafe,
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