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