Struct vulkano::sync::SemaphoreImportFlags
source · [−]pub struct SemaphoreImportFlags {
pub temporary: bool,
pub _ne: NonExhaustive,
}
Expand description
Additional parameters for a semaphore payload import.
Fields
temporary: bool
The semaphore payload will be imported only temporarily, regardless of the permanence of the imported handle type.
_ne: NonExhaustive
Implementations
sourceimpl SemaphoreImportFlags
impl SemaphoreImportFlags
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: Use empty
instead.
pub const fn none() -> Self
empty
instead.Returns 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 set in self
or other
, but not both.
Trait Implementations
sourceimpl BitAnd<SemaphoreImportFlags> for SemaphoreImportFlags
impl BitAnd<SemaphoreImportFlags> for SemaphoreImportFlags
type Output = SemaphoreImportFlags
type Output = SemaphoreImportFlags
The resulting type after applying the
&
operator.sourceimpl BitAndAssign<SemaphoreImportFlags> for SemaphoreImportFlags
impl BitAndAssign<SemaphoreImportFlags> for SemaphoreImportFlags
sourcefn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresourceimpl BitOr<SemaphoreImportFlags> for SemaphoreImportFlags
impl BitOr<SemaphoreImportFlags> for SemaphoreImportFlags
type Output = SemaphoreImportFlags
type Output = SemaphoreImportFlags
The resulting type after applying the
|
operator.sourceimpl BitOrAssign<SemaphoreImportFlags> for SemaphoreImportFlags
impl BitOrAssign<SemaphoreImportFlags> for SemaphoreImportFlags
sourcefn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresourceimpl BitXor<SemaphoreImportFlags> for SemaphoreImportFlags
impl BitXor<SemaphoreImportFlags> for SemaphoreImportFlags
type Output = SemaphoreImportFlags
type Output = SemaphoreImportFlags
The resulting type after applying the
^
operator.sourceimpl BitXorAssign<SemaphoreImportFlags> for SemaphoreImportFlags
impl BitXorAssign<SemaphoreImportFlags> for SemaphoreImportFlags
sourcefn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresourceimpl Clone for SemaphoreImportFlags
impl Clone for SemaphoreImportFlags
sourcefn clone(&self) -> SemaphoreImportFlags
fn clone(&self) -> SemaphoreImportFlags
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SemaphoreImportFlags
impl Debug for SemaphoreImportFlags
sourceimpl Default for SemaphoreImportFlags
impl Default for SemaphoreImportFlags
sourceimpl From<SemaphoreImportFlags> for SemaphoreImportFlags
impl From<SemaphoreImportFlags> for SemaphoreImportFlags
sourcefn from(val: SemaphoreImportFlags) -> Self
fn from(val: SemaphoreImportFlags) -> Self
Converts to this type from the input type.
sourceimpl From<SemaphoreImportFlags> for SemaphoreImportFlags
impl From<SemaphoreImportFlags> for SemaphoreImportFlags
sourcefn from(val: SemaphoreImportFlags) -> Self
fn from(val: SemaphoreImportFlags) -> Self
Converts to this type from the input type.
sourceimpl Hash for SemaphoreImportFlags
impl Hash for SemaphoreImportFlags
sourceimpl PartialEq<SemaphoreImportFlags> for SemaphoreImportFlags
impl PartialEq<SemaphoreImportFlags> for SemaphoreImportFlags
sourcefn eq(&self, other: &SemaphoreImportFlags) -> bool
fn eq(&self, other: &SemaphoreImportFlags) -> bool
sourceimpl Sub<SemaphoreImportFlags> for SemaphoreImportFlags
impl Sub<SemaphoreImportFlags> for SemaphoreImportFlags
type Output = SemaphoreImportFlags
type Output = SemaphoreImportFlags
The resulting type after applying the
-
operator.sourceimpl SubAssign<SemaphoreImportFlags> for SemaphoreImportFlags
impl SubAssign<SemaphoreImportFlags> for SemaphoreImportFlags
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more