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