pub enum Policy {
Default,
Fastest,
MinMemory,
Pinned(ImplId),
PreferEnvironment(Ident),
}Expand description
How to choose among the proofs of a proposition.
Variants§
Default
Whatever is cheapest overall, preferring not to leave the process.
Fastest
The best time complexity on offer.
MinMemory
The smallest memory footprint on offer.
Pinned(ImplId)
This proof and no other. If it cannot run, the call fails rather than quietly becoming a different call.
PreferEnvironment(Ident)
Anything in this environment, if there is one; otherwise the default.
Trait Implementations§
impl StructuralPartialEq for Policy
Auto Trait Implementations§
impl Freeze for Policy
impl RefUnwindSafe for Policy
impl Send for Policy
impl Sync for Policy
impl Unpin for Policy
impl UnsafeUnpin for Policy
impl UnwindSafe for Policy
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