pub struct MetalExtFeatures { /* private fields */ }Expand description
A feature flag set for MetalExt capabilities.
Implementations§
Source§impl MetalExtFeatures
impl MetalExtFeatures
pub fn new() -> Self
pub fn enable(&mut self, flag: impl Into<String>)
pub fn disable(&mut self, flag: &str)
pub fn is_enabled(&self, flag: &str) -> bool
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn union(&self, other: &MetalExtFeatures) -> MetalExtFeatures
pub fn intersection(&self, other: &MetalExtFeatures) -> MetalExtFeatures
Trait Implementations§
Source§impl Clone for MetalExtFeatures
impl Clone for MetalExtFeatures
Source§fn clone(&self) -> MetalExtFeatures
fn clone(&self) -> MetalExtFeatures
Returns a duplicate of the value. Read more
1.0.0 · 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 MetalExtFeatures
impl Debug for MetalExtFeatures
Source§impl Default for MetalExtFeatures
impl Default for MetalExtFeatures
Source§fn default() -> MetalExtFeatures
fn default() -> MetalExtFeatures
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MetalExtFeatures
impl RefUnwindSafe for MetalExtFeatures
impl Send for MetalExtFeatures
impl Sync for MetalExtFeatures
impl Unpin for MetalExtFeatures
impl UnsafeUnpin for MetalExtFeatures
impl UnwindSafe for MetalExtFeatures
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