Struct vulkano::sync::fence::ExternalFenceHandleTypes
source · pub struct ExternalFenceHandleTypes(/* private fields */);
Expand description
A set of ExternalFenceHandleType
values.
Implementations§
source§impl ExternalFenceHandleTypes
impl ExternalFenceHandleTypes
sourcepub const OPAQUE_FD: Self = _
pub const OPAQUE_FD: Self = _
A POSIX file descriptor handle that is only usable with Vulkan and compatible APIs.
This handle type has reference transference.
sourcepub const OPAQUE_WIN32: Self = _
pub const OPAQUE_WIN32: Self = _
A Windows NT handle that is only usable with Vulkan and compatible APIs.
This handle type has reference transference.
sourcepub const OPAQUE_WIN32_KMT: Self = _
pub const OPAQUE_WIN32_KMT: Self = _
A Windows global share handle that is only usable with Vulkan and compatible APIs.
This handle type has reference transference.
sourcepub const SYNC_FD: Self = _
pub const SYNC_FD: Self = _
A POSIX file descriptor handle to a Linux Sync File or Android Fence object.
This handle type has copy transference.
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: use empty
instead
pub const fn none() -> Self
empty
insteadReturns 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 that are set in self
or other
, but not in both.
sourcepub fn contains_enum(self, val: ExternalFenceHandleType) -> bool
pub fn contains_enum(self, val: ExternalFenceHandleType) -> bool
Returns whether self
contains the flag corresponding to val
.
Trait Implementations§
source§impl BitAnd for ExternalFenceHandleTypes
impl BitAnd for ExternalFenceHandleTypes
source§impl BitAndAssign for ExternalFenceHandleTypes
impl BitAndAssign for ExternalFenceHandleTypes
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moresource§impl BitOr for ExternalFenceHandleTypes
impl BitOr for ExternalFenceHandleTypes
source§impl BitOrAssign for ExternalFenceHandleTypes
impl BitOrAssign for ExternalFenceHandleTypes
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moresource§impl BitXor for ExternalFenceHandleTypes
impl BitXor for ExternalFenceHandleTypes
source§impl BitXorAssign for ExternalFenceHandleTypes
impl BitXorAssign for ExternalFenceHandleTypes
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moresource§impl Clone for ExternalFenceHandleTypes
impl Clone for ExternalFenceHandleTypes
source§fn clone(&self) -> ExternalFenceHandleTypes
fn clone(&self) -> ExternalFenceHandleTypes
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExternalFenceHandleTypes
impl Debug for ExternalFenceHandleTypes
source§impl Default for ExternalFenceHandleTypes
impl Default for ExternalFenceHandleTypes
source§impl From<ExternalFenceHandleType> for ExternalFenceHandleTypes
impl From<ExternalFenceHandleType> for ExternalFenceHandleTypes
source§fn from(val: ExternalFenceHandleType) -> Self
fn from(val: ExternalFenceHandleType) -> Self
source§impl From<ExternalFenceHandleTypeFlags> for ExternalFenceHandleTypes
impl From<ExternalFenceHandleTypeFlags> for ExternalFenceHandleTypes
source§fn from(val: ExternalFenceHandleTypeFlags) -> Self
fn from(val: ExternalFenceHandleTypeFlags) -> Self
source§impl From<ExternalFenceHandleTypes> for ExternalFenceHandleTypeFlags
impl From<ExternalFenceHandleTypes> for ExternalFenceHandleTypeFlags
source§fn from(val: ExternalFenceHandleTypes) -> Self
fn from(val: ExternalFenceHandleTypes) -> Self
source§impl FromIterator<ExternalFenceHandleType> for ExternalFenceHandleTypes
impl FromIterator<ExternalFenceHandleType> for ExternalFenceHandleTypes
source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = ExternalFenceHandleType>,
fn from_iter<T>(iter: T) -> Selfwhere T: IntoIterator<Item = ExternalFenceHandleType>,
source§impl Hash for ExternalFenceHandleTypes
impl Hash for ExternalFenceHandleTypes
source§impl IntoIterator for ExternalFenceHandleTypes
impl IntoIterator for ExternalFenceHandleTypes
§type Item = ExternalFenceHandleType
type Item = ExternalFenceHandleType
§type IntoIter = Flatten<IntoIter<Option<<ExternalFenceHandleTypes as IntoIterator>::Item>, { $ty_bitflags::all_raw().count_ones() as usize }>>
type IntoIter = Flatten<IntoIter<Option<<ExternalFenceHandleTypes as IntoIterator>::Item>, { $ty_bitflags::all_raw().count_ones() as usize }>>
source§impl PartialEq for ExternalFenceHandleTypes
impl PartialEq for ExternalFenceHandleTypes
source§fn eq(&self, other: &ExternalFenceHandleTypes) -> bool
fn eq(&self, other: &ExternalFenceHandleTypes) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Sub for ExternalFenceHandleTypes
impl Sub for ExternalFenceHandleTypes
source§impl SubAssign for ExternalFenceHandleTypes
impl SubAssign for ExternalFenceHandleTypes
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-=
operation. Read more