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