#[non_exhaustive]pub enum BackendPolicy {
ScalarExecutionOnly,
SimdFeatureDisabled,
NoDetectedSimdCandidate,
HighAssuranceScalarOnly,
}Expand description
Deployment policy for runtime backend assertions.
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.
ScalarExecutionOnly
Require encode/decode execution to use the scalar backend.
SimdFeatureDisabled
Require the crate to be built without the simd feature.
NoDetectedSimdCandidate
Require no SIMD candidate to be visible to this build and target.
HighAssuranceScalarOnly
Require scalar execution, the simd feature disabled, no detected
SIMD candidate, and the unsafe boundary enforced.
Implementations§
Trait Implementations§
Source§impl Clone for BackendPolicy
impl Clone for BackendPolicy
Source§fn clone(&self) -> BackendPolicy
fn clone(&self) -> BackendPolicy
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 moreSource§impl Debug for BackendPolicy
impl Debug for BackendPolicy
Source§impl Display for BackendPolicy
impl Display for BackendPolicy
Source§impl PartialEq for BackendPolicy
impl PartialEq for BackendPolicy
Source§fn eq(&self, other: &BackendPolicy) -> bool
fn eq(&self, other: &BackendPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for BackendPolicy
impl Eq for BackendPolicy
impl StructuralPartialEq for BackendPolicy
Auto Trait Implementations§
impl Freeze for BackendPolicy
impl RefUnwindSafe for BackendPolicy
impl Send for BackendPolicy
impl Sync for BackendPolicy
impl Unpin for BackendPolicy
impl UnsafeUnpin for BackendPolicy
impl UnwindSafe for BackendPolicy
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