pub struct RefinementValue<T: Clone> { /* private fields */ }Expand description
A refinement-type value: a value together with a dynamically-checked proof tag.
The proof is stored as a bool result from a predicate closure so the type
can be constructed and inspected without heavyweight theorem-prover plumbing.
Implementations§
Source§impl<T: Clone> RefinementValue<T>
impl<T: Clone> RefinementValue<T>
Trait Implementations§
Source§impl<T: Clone + Clone> Clone for RefinementValue<T>
impl<T: Clone + Clone> Clone for RefinementValue<T>
Source§fn clone(&self) -> RefinementValue<T>
fn clone(&self) -> RefinementValue<T>
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 moreAuto Trait Implementations§
impl<T> Freeze for RefinementValue<T>where
T: Freeze,
impl<T> RefUnwindSafe for RefinementValue<T>where
T: RefUnwindSafe,
impl<T> Send for RefinementValue<T>where
T: Send,
impl<T> Sync for RefinementValue<T>where
T: Sync,
impl<T> Unpin for RefinementValue<T>where
T: Unpin,
impl<T> UnsafeUnpin for RefinementValue<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for RefinementValue<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