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