pub(crate) struct Bucket {
name: &'static str,
limits: Limits,
info: BucketedAdapterInfo,
features: Features,
}Fields§
§name: &'static str§limits: Limits§info: BucketedAdapterInfo§features: FeaturesImplementations§
Source§impl Bucket
impl Bucket
pub fn name(&self) -> &'static str
Sourcepub fn is_compatible(
&self,
limits: &Limits,
info: &AdapterInfo,
features: Features,
) -> bool
pub fn is_compatible( &self, limits: &Limits, info: &AdapterInfo, features: Features, ) -> bool
Returns true if the device having limits, info, and features satisfies
the bucket definition in self.
pub fn try_apply_to(&self, adapter: &mut DynExposedAdapter) -> bool
Auto Trait Implementations§
impl Freeze for Bucket
impl RefUnwindSafe for Bucket
impl Send for Bucket
impl Sync for Bucket
impl Unpin for Bucket
impl UnwindSafe for Bucket
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more