Struct vulkano::device::physical::ToolPurposes
source · pub struct ToolPurposes(/* private fields */);
Expand description
The purpose of an active tool.
Implementations§
source§impl ToolPurposes
impl ToolPurposes
sourcepub const VALIDATION: Self = _
pub const VALIDATION: Self = _
The tool provides validation of API usage.
sourcepub const ADDITIONAL_FEATURES: Self = _
pub const ADDITIONAL_FEATURES: Self = _
The tool provides additional API features or extensions on top of the underlying implementation.
sourcepub const MODIFYING_FEATURES: Self = _
pub const MODIFYING_FEATURES: Self = _
The tool modifies the API features, limits or extensions presented to the application.
sourcepub const DEBUG_REPORTING: Self = _
pub const DEBUG_REPORTING: Self = _
The tool reports information to the user via a
DebugUtilsMessenger
.
sourcepub const DEBUG_MARKERS: Self = _
pub const DEBUG_MARKERS: Self = _
The tool consumes debug markers or object debug annotation, queue labels or command buffer labels.
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: use empty
instead
pub const fn none() -> Self
empty
insteadReturns a ToolPurposes
with none of the flags set.
sourcepub const fn intersects(self, other: Self) -> bool
pub const fn intersects(self, other: Self) -> bool
Returns whether any flags are set in both self
and other
.
sourcepub const fn contains(self, other: Self) -> bool
pub const fn contains(self, other: Self) -> bool
Returns whether all flags in other
are set in self
.
sourcepub const fn intersection(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
Returns the intersection of self
and other
.
sourcepub const fn difference(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
Returns self
without the flags set in other
.
sourcepub const fn symmetric_difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
Returns the flags that are set in self
or other
, but not in both.
Trait Implementations§
source§impl BitAnd for ToolPurposes
impl BitAnd for ToolPurposes
source§impl BitAndAssign for ToolPurposes
impl BitAndAssign for ToolPurposes
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOr for ToolPurposes
impl BitOr for ToolPurposes
source§impl BitOrAssign for ToolPurposes
impl BitOrAssign for ToolPurposes
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXor for ToolPurposes
impl BitXor for ToolPurposes
source§impl BitXorAssign for ToolPurposes
impl BitXorAssign for ToolPurposes
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresource§impl Clone for ToolPurposes
impl Clone for ToolPurposes
source§fn clone(&self) -> ToolPurposes
fn clone(&self) -> ToolPurposes
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 moresource§impl Debug for ToolPurposes
impl Debug for ToolPurposes
source§impl Default for ToolPurposes
impl Default for ToolPurposes
source§impl From<ToolPurposeFlags> for ToolPurposes
impl From<ToolPurposeFlags> for ToolPurposes
source§fn from(val: ToolPurposeFlags) -> Self
fn from(val: ToolPurposeFlags) -> Self
Converts to this type from the input type.
source§impl From<ToolPurposes> for ToolPurposeFlags
impl From<ToolPurposes> for ToolPurposeFlags
source§fn from(val: ToolPurposes) -> Self
fn from(val: ToolPurposes) -> Self
Converts to this type from the input type.
source§impl Hash for ToolPurposes
impl Hash for ToolPurposes
source§impl PartialEq for ToolPurposes
impl PartialEq for ToolPurposes
source§fn eq(&self, other: &ToolPurposes) -> bool
fn eq(&self, other: &ToolPurposes) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Sub for ToolPurposes
impl Sub for ToolPurposes
source§impl SubAssign for ToolPurposes
impl SubAssign for ToolPurposes
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for ToolPurposes
impl Eq for ToolPurposes
impl StructuralEq for ToolPurposes
impl StructuralPartialEq for ToolPurposes
Auto Trait Implementations§
impl RefUnwindSafe for ToolPurposes
impl Send for ToolPurposes
impl Sync for ToolPurposes
impl Unpin for ToolPurposes
impl UnwindSafe for ToolPurposes
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