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 UnsafeUnpin 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