Struct vulkano::sync::ExternalFenceHandleTypes
source · [−]pub struct ExternalFenceHandleTypes {
pub opaque_fd: bool,
pub opaque_win32: bool,
pub opaque_win32_kmt: bool,
pub sync_fd: bool,
pub _ne: NonExhaustive,
}
Expand description
A mask of multiple external fence handle types.
Fields
opaque_fd: bool
opaque_win32: bool
opaque_win32_kmt: bool
sync_fd: bool
_ne: NonExhaustive
Implementations
sourceimpl ExternalFenceHandleTypes
impl ExternalFenceHandleTypes
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: Use empty
instead.
pub const fn none() -> Self
empty
instead.Returns a ExternalFenceHandleTypes
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<ExternalFenceHandleTypes> for ExternalFenceHandleTypes
impl BitAnd<ExternalFenceHandleTypes> for ExternalFenceHandleTypes
type Output = ExternalFenceHandleTypes
type Output = ExternalFenceHandleTypes
The resulting type after applying the
&
operator.sourceimpl BitAndAssign<ExternalFenceHandleTypes> for ExternalFenceHandleTypes
impl BitAndAssign<ExternalFenceHandleTypes> for ExternalFenceHandleTypes
sourcefn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresourceimpl BitOr<ExternalFenceHandleTypes> for ExternalFenceHandleTypes
impl BitOr<ExternalFenceHandleTypes> for ExternalFenceHandleTypes
type Output = ExternalFenceHandleTypes
type Output = ExternalFenceHandleTypes
The resulting type after applying the
|
operator.sourceimpl BitOrAssign<ExternalFenceHandleTypes> for ExternalFenceHandleTypes
impl BitOrAssign<ExternalFenceHandleTypes> for ExternalFenceHandleTypes
sourcefn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresourceimpl BitXor<ExternalFenceHandleTypes> for ExternalFenceHandleTypes
impl BitXor<ExternalFenceHandleTypes> for ExternalFenceHandleTypes
type Output = ExternalFenceHandleTypes
type Output = ExternalFenceHandleTypes
The resulting type after applying the
^
operator.sourceimpl BitXorAssign<ExternalFenceHandleTypes> for ExternalFenceHandleTypes
impl BitXorAssign<ExternalFenceHandleTypes> for ExternalFenceHandleTypes
sourcefn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresourceimpl Clone for ExternalFenceHandleTypes
impl Clone for ExternalFenceHandleTypes
sourcefn clone(&self) -> ExternalFenceHandleTypes
fn clone(&self) -> ExternalFenceHandleTypes
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 ExternalFenceHandleTypes
impl Debug for ExternalFenceHandleTypes
sourceimpl Default for ExternalFenceHandleTypes
impl Default for ExternalFenceHandleTypes
sourceimpl From<ExternalFenceHandleType> for ExternalFenceHandleTypes
impl From<ExternalFenceHandleType> for ExternalFenceHandleTypes
sourcefn from(val: ExternalFenceHandleType) -> Self
fn from(val: ExternalFenceHandleType) -> Self
Converts to this type from the input type.
sourceimpl From<ExternalFenceHandleTypeFlags> for ExternalFenceHandleTypes
impl From<ExternalFenceHandleTypeFlags> for ExternalFenceHandleTypes
sourcefn from(val: ExternalFenceHandleTypeFlags) -> Self
fn from(val: ExternalFenceHandleTypeFlags) -> Self
Converts to this type from the input type.
sourceimpl From<ExternalFenceHandleTypes> for ExternalFenceHandleTypeFlags
impl From<ExternalFenceHandleTypes> for ExternalFenceHandleTypeFlags
sourcefn from(val: ExternalFenceHandleTypes) -> Self
fn from(val: ExternalFenceHandleTypes) -> Self
Converts to this type from the input type.
sourceimpl Hash for ExternalFenceHandleTypes
impl Hash for ExternalFenceHandleTypes
sourceimpl PartialEq<ExternalFenceHandleTypes> for ExternalFenceHandleTypes
impl PartialEq<ExternalFenceHandleTypes> for ExternalFenceHandleTypes
sourcefn eq(&self, other: &ExternalFenceHandleTypes) -> bool
fn eq(&self, other: &ExternalFenceHandleTypes) -> bool
sourceimpl Sub<ExternalFenceHandleTypes> for ExternalFenceHandleTypes
impl Sub<ExternalFenceHandleTypes> for ExternalFenceHandleTypes
type Output = ExternalFenceHandleTypes
type Output = ExternalFenceHandleTypes
The resulting type after applying the
-
operator.sourceimpl SubAssign<ExternalFenceHandleTypes> for ExternalFenceHandleTypes
impl SubAssign<ExternalFenceHandleTypes> for ExternalFenceHandleTypes
sourcefn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for ExternalFenceHandleTypes
impl Eq for ExternalFenceHandleTypes
impl StructuralEq for ExternalFenceHandleTypes
impl StructuralPartialEq for ExternalFenceHandleTypes
Auto Trait Implementations
impl RefUnwindSafe for ExternalFenceHandleTypes
impl Send for ExternalFenceHandleTypes
impl Sync for ExternalFenceHandleTypes
impl Unpin for ExternalFenceHandleTypes
impl UnwindSafe for ExternalFenceHandleTypes
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