pub struct AdapterFeatureClaim { /* private fields */ }Expand description
One explicit feature claim. There is no fallback or emulation field.
Implementations§
Source§impl AdapterFeatureClaim
impl AdapterFeatureClaim
Sourcepub fn new(
feature: InstallationFeature,
disposition: AdapterFeatureDisposition,
limitation: Option<AdapterLimitation>,
) -> Result<Self, AdapterConformanceError>
pub fn new( feature: InstallationFeature, disposition: AdapterFeatureDisposition, limitation: Option<AdapterLimitation>, ) -> Result<Self, AdapterConformanceError>
Validates one closed support claim.
Sourcepub const fn required(feature: InstallationFeature) -> Self
pub const fn required(feature: InstallationFeature) -> Self
Required claim with no silent fallback.
Explicit unavailable claim with a closed reason.
Sourcepub const fn feature(self) -> InstallationFeature
pub const fn feature(self) -> InstallationFeature
Closed feature identity.
Sourcepub const fn disposition(self) -> AdapterFeatureDisposition
pub const fn disposition(self) -> AdapterFeatureDisposition
Explicit support disposition.
Sourcepub const fn limitation(self) -> Option<AdapterLimitation>
pub const fn limitation(self) -> Option<AdapterLimitation>
Closed limitation for degraded or unavailable support.
Trait Implementations§
Source§impl Clone for AdapterFeatureClaim
impl Clone for AdapterFeatureClaim
impl Copy for AdapterFeatureClaim
Source§impl Debug for AdapterFeatureClaim
impl Debug for AdapterFeatureClaim
impl Eq for AdapterFeatureClaim
Source§impl Ord for AdapterFeatureClaim
impl Ord for AdapterFeatureClaim
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for AdapterFeatureClaim
impl PartialEq for AdapterFeatureClaim
Source§impl PartialOrd for AdapterFeatureClaim
impl PartialOrd for AdapterFeatureClaim
impl StructuralPartialEq for AdapterFeatureClaim
Auto Trait Implementations§
impl Freeze for AdapterFeatureClaim
impl RefUnwindSafe for AdapterFeatureClaim
impl Send for AdapterFeatureClaim
impl Sync for AdapterFeatureClaim
impl Unpin for AdapterFeatureClaim
impl UnsafeUnpin for AdapterFeatureClaim
impl UnwindSafe for AdapterFeatureClaim
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