Struct vulkano::sync::semaphore::SemaphoreImportFlags
source · pub struct SemaphoreImportFlags(/* private fields */);
Expand description
Additional parameters for a semaphore payload import.
Implementations§
source§impl SemaphoreImportFlags
impl SemaphoreImportFlags
sourcepub const TEMPORARY: Self = _
pub const TEMPORARY: Self = _
The semaphore payload will be imported only temporarily, regardless of the permanence of the imported handle type.
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: use empty
instead
pub const fn none() -> Self
empty
insteadReturns a SemaphoreImportFlags
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 SemaphoreImportFlags
impl BitAnd for SemaphoreImportFlags
source§impl BitAndAssign for SemaphoreImportFlags
impl BitAndAssign for SemaphoreImportFlags
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOr for SemaphoreImportFlags
impl BitOr for SemaphoreImportFlags
source§impl BitOrAssign for SemaphoreImportFlags
impl BitOrAssign for SemaphoreImportFlags
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXor for SemaphoreImportFlags
impl BitXor for SemaphoreImportFlags
source§impl BitXorAssign for SemaphoreImportFlags
impl BitXorAssign for SemaphoreImportFlags
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresource§impl Clone for SemaphoreImportFlags
impl Clone for SemaphoreImportFlags
source§fn clone(&self) -> SemaphoreImportFlags
fn clone(&self) -> SemaphoreImportFlags
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 SemaphoreImportFlags
impl Debug for SemaphoreImportFlags
source§impl Default for SemaphoreImportFlags
impl Default for SemaphoreImportFlags
source§impl From<SemaphoreImportFlags> for SemaphoreImportFlags
impl From<SemaphoreImportFlags> for SemaphoreImportFlags
source§fn from(val: SemaphoreImportFlags) -> Self
fn from(val: SemaphoreImportFlags) -> Self
Converts to this type from the input type.
source§impl From<SemaphoreImportFlags> for SemaphoreImportFlags
impl From<SemaphoreImportFlags> for SemaphoreImportFlags
source§fn from(val: SemaphoreImportFlags) -> Self
fn from(val: SemaphoreImportFlags) -> Self
Converts to this type from the input type.
source§impl Hash for SemaphoreImportFlags
impl Hash for SemaphoreImportFlags
source§impl PartialEq for SemaphoreImportFlags
impl PartialEq for SemaphoreImportFlags
source§fn eq(&self, other: &SemaphoreImportFlags) -> bool
fn eq(&self, other: &SemaphoreImportFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Sub for SemaphoreImportFlags
impl Sub for SemaphoreImportFlags
source§impl SubAssign for SemaphoreImportFlags
impl SubAssign for SemaphoreImportFlags
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for SemaphoreImportFlags
impl Eq for SemaphoreImportFlags
impl StructuralEq for SemaphoreImportFlags
impl StructuralPartialEq for SemaphoreImportFlags
Auto Trait Implementations§
impl RefUnwindSafe for SemaphoreImportFlags
impl Send for SemaphoreImportFlags
impl Sync for SemaphoreImportFlags
impl Unpin for SemaphoreImportFlags
impl UnwindSafe for SemaphoreImportFlags
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