Struct ProviderCapability
pub struct ProviderCapability(/* private fields */);
Implementations§
§impl ProviderCapability
impl ProviderCapability
pub const SOURCE_OUTPUT: ProviderCapability = _
pub const SINK_OUTPUT: ProviderCapability = _
pub const SOURCE_OFFLOAD: ProviderCapability = _
pub const SINK_OFFLOAD: ProviderCapability = _
§impl ProviderCapability
impl ProviderCapability
pub fn contains(self, flag: impl Into<u32>) -> bool
pub fn contains(self, flag: impl Into<u32>) -> bool
Check if this object has all bits set that are also set in flag
.
flag
can be a single enum variant or a whole other mask.
pub fn intersects(self, flag: impl Into<u32>) -> bool
pub fn intersects(self, flag: impl Into<u32>) -> bool
Check if this object has some bits set that are also set in flag
.
flag
can be a single enum variant or a whole other mask.
pub fn remove(self, flags: impl Into<u32>) -> ProviderCapability
pub fn remove(self, flags: impl Into<u32>) -> ProviderCapability
Remove some flags.
All bits that are set in the given flags are removed from the self
instance, if
they are present.
Trait Implementations§
§impl BitAnd<u32> for ProviderCapability
impl BitAnd<u32> for ProviderCapability
§impl BitAnd for ProviderCapability
impl BitAnd for ProviderCapability
§type Output = ProviderCapability
type Output = ProviderCapability
The resulting type after applying the
&
operator.§fn bitand(
self,
other: ProviderCapability,
) -> <ProviderCapability as BitAnd>::Output
fn bitand( self, other: ProviderCapability, ) -> <ProviderCapability as BitAnd>::Output
Performs the
&
operation. Read more§impl BitAndAssign<u32> for ProviderCapability
impl BitAndAssign<u32> for ProviderCapability
§fn bitand_assign(&mut self, other: u32)
fn bitand_assign(&mut self, other: u32)
Performs the
&=
operation. Read more§impl BitAndAssign for ProviderCapability
impl BitAndAssign for ProviderCapability
§fn bitand_assign(&mut self, other: ProviderCapability)
fn bitand_assign(&mut self, other: ProviderCapability)
Performs the
&=
operation. Read more§impl BitOr<u32> for ProviderCapability
impl BitOr<u32> for ProviderCapability
§impl BitOr for ProviderCapability
impl BitOr for ProviderCapability
§type Output = ProviderCapability
type Output = ProviderCapability
The resulting type after applying the
|
operator.§fn bitor(
self,
other: ProviderCapability,
) -> <ProviderCapability as BitOr>::Output
fn bitor( self, other: ProviderCapability, ) -> <ProviderCapability as BitOr>::Output
Performs the
|
operation. Read more§impl BitOrAssign<u32> for ProviderCapability
impl BitOrAssign<u32> for ProviderCapability
§fn bitor_assign(&mut self, other: u32)
fn bitor_assign(&mut self, other: u32)
Performs the
|=
operation. Read more§impl BitOrAssign for ProviderCapability
impl BitOrAssign for ProviderCapability
§fn bitor_assign(&mut self, other: ProviderCapability)
fn bitor_assign(&mut self, other: ProviderCapability)
Performs the
|=
operation. Read more§impl Clone for ProviderCapability
impl Clone for ProviderCapability
§fn clone(&self) -> ProviderCapability
fn clone(&self) -> ProviderCapability
Returns a copy 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 more§impl Debug for ProviderCapability
impl Debug for ProviderCapability
§impl Default for ProviderCapability
impl Default for ProviderCapability
§fn default() -> ProviderCapability
fn default() -> ProviderCapability
Returns the “default value” for a type. Read more
§impl From<u16> for ProviderCapability
impl From<u16> for ProviderCapability
§fn from(value: u16) -> ProviderCapability
fn from(value: u16) -> ProviderCapability
Converts to this type from the input type.
§impl From<u32> for ProviderCapability
impl From<u32> for ProviderCapability
§fn from(value: u32) -> ProviderCapability
fn from(value: u32) -> ProviderCapability
Converts to this type from the input type.
§impl From<u8> for ProviderCapability
impl From<u8> for ProviderCapability
§fn from(value: u8) -> ProviderCapability
fn from(value: u8) -> ProviderCapability
Converts to this type from the input type.
§impl Hash for ProviderCapability
impl Hash for ProviderCapability
§impl Ord for ProviderCapability
impl Ord for ProviderCapability
§fn cmp(&self, other: &ProviderCapability) -> Ordering
fn cmp(&self, other: &ProviderCapability) -> Ordering
1.21.0 · 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
§impl PartialEq for ProviderCapability
impl PartialEq for ProviderCapability
§impl PartialOrd for ProviderCapability
impl PartialOrd for ProviderCapability
impl Copy for ProviderCapability
impl Eq for ProviderCapability
impl StructuralPartialEq for ProviderCapability
Auto Trait Implementations§
impl Freeze for ProviderCapability
impl RefUnwindSafe for ProviderCapability
impl Send for ProviderCapability
impl Sync for ProviderCapability
impl Unpin for ProviderCapability
impl UnwindSafe for ProviderCapability
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)