Struct vulkano::buffer::BufferCreateFlags
source · pub struct BufferCreateFlags {
pub _ne: NonExhaustive,
}
Expand description
Flags to be set when creating a buffer.
Fields
_ne: NonExhaustive
Implementations
sourceimpl BufferCreateFlags
impl BufferCreateFlags
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: Use empty
instead.
pub const fn none() -> Self
empty
instead.Returns 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 set in self
or other
, but not both.
Trait Implementations
sourceimpl BitAnd<BufferCreateFlags> for BufferCreateFlags
impl BitAnd<BufferCreateFlags> for BufferCreateFlags
type Output = BufferCreateFlags
type Output = BufferCreateFlags
The resulting type after applying the
&
operator.sourceimpl BitAndAssign<BufferCreateFlags> for BufferCreateFlags
impl BitAndAssign<BufferCreateFlags> for BufferCreateFlags
sourcefn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresourceimpl BitOr<BufferCreateFlags> for BufferCreateFlags
impl BitOr<BufferCreateFlags> for BufferCreateFlags
type Output = BufferCreateFlags
type Output = BufferCreateFlags
The resulting type after applying the
|
operator.sourceimpl BitOrAssign<BufferCreateFlags> for BufferCreateFlags
impl BitOrAssign<BufferCreateFlags> for BufferCreateFlags
sourcefn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresourceimpl BitXor<BufferCreateFlags> for BufferCreateFlags
impl BitXor<BufferCreateFlags> for BufferCreateFlags
type Output = BufferCreateFlags
type Output = BufferCreateFlags
The resulting type after applying the
^
operator.sourceimpl BitXorAssign<BufferCreateFlags> for BufferCreateFlags
impl BitXorAssign<BufferCreateFlags> for BufferCreateFlags
sourcefn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresourceimpl Clone for BufferCreateFlags
impl Clone for BufferCreateFlags
sourcefn clone(&self) -> BufferCreateFlags
fn clone(&self) -> BufferCreateFlags
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 BufferCreateFlags
impl Debug for BufferCreateFlags
sourceimpl Default for BufferCreateFlags
impl Default for BufferCreateFlags
sourceimpl From<BufferCreateFlags> for BufferCreateFlags
impl From<BufferCreateFlags> for BufferCreateFlags
sourcefn from(val: BufferCreateFlags) -> Self
fn from(val: BufferCreateFlags) -> Self
Converts to this type from the input type.
sourceimpl From<BufferCreateFlags> for BufferCreateFlags
impl From<BufferCreateFlags> for BufferCreateFlags
sourcefn from(val: BufferCreateFlags) -> Self
fn from(val: BufferCreateFlags) -> Self
Converts to this type from the input type.
sourceimpl Hash for BufferCreateFlags
impl Hash for BufferCreateFlags
sourceimpl PartialEq<BufferCreateFlags> for BufferCreateFlags
impl PartialEq<BufferCreateFlags> for BufferCreateFlags
sourcefn eq(&self, other: &BufferCreateFlags) -> bool
fn eq(&self, other: &BufferCreateFlags) -> bool
sourceimpl Sub<BufferCreateFlags> for BufferCreateFlags
impl Sub<BufferCreateFlags> for BufferCreateFlags
type Output = BufferCreateFlags
type Output = BufferCreateFlags
The resulting type after applying the
-
operator.sourceimpl SubAssign<BufferCreateFlags> for BufferCreateFlags
impl SubAssign<BufferCreateFlags> for BufferCreateFlags
sourcefn 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
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