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