#[non_exhaustive]pub enum LossPolicy {
ExactOnly,
AllowApproximate,
AllowPartial,
}Expand description
Caller-selected authorization for non-exact candidate output.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ExactOnly
Emit output only when every decision is exact.
AllowApproximate
Permit documented approximate mappings but not unsupported intent.
AllowPartial
Permit partial output with diagnostics for unsupported intent.
Trait Implementations§
Source§impl Clone for LossPolicy
impl Clone for LossPolicy
Source§fn clone(&self) -> LossPolicy
fn clone(&self) -> LossPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LossPolicy
Source§impl Debug for LossPolicy
impl Debug for LossPolicy
impl Eq for LossPolicy
Source§impl PartialEq for LossPolicy
impl PartialEq for LossPolicy
impl StructuralPartialEq for LossPolicy
Auto Trait Implementations§
impl Freeze for LossPolicy
impl RefUnwindSafe for LossPolicy
impl Send for LossPolicy
impl Sync for LossPolicy
impl Unpin for LossPolicy
impl UnsafeUnpin for LossPolicy
impl UnwindSafe for LossPolicy
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