pub struct QueryControlFlags(/* private fields */);Expand description
Flags that control how a query is to be executed.
Implementations§
Source§impl QueryControlFlags
impl QueryControlFlags
Sourcepub const PRECISE: QueryControlFlags
pub const PRECISE: QueryControlFlags
For occlusion queries, specifies that the result must reflect the exact number of tests passed. If not enabled, the query may return a result of 1 even if more fragments passed the test.
Sourcepub const fn empty() -> QueryControlFlags
pub const fn empty() -> QueryControlFlags
Returns a QueryControlFlags with none of the flags set.
Sourcepub const fn none() -> QueryControlFlags
👎Deprecated since 0.31.0: use empty instead
pub const fn none() -> QueryControlFlags
empty insteadReturns a QueryControlFlags with none of the flags set.
Sourcepub const fn intersects(self, other: QueryControlFlags) -> bool
pub const fn intersects(self, other: QueryControlFlags) -> bool
Returns whether any flags are set in both self and other.
Sourcepub const fn contains(self, other: QueryControlFlags) -> bool
pub const fn contains(self, other: QueryControlFlags) -> bool
Returns whether all flags in other are set in self.
Sourcepub const fn union(self, other: QueryControlFlags) -> QueryControlFlags
pub const fn union(self, other: QueryControlFlags) -> QueryControlFlags
Returns the union of self and other.
Sourcepub const fn intersection(self, other: QueryControlFlags) -> QueryControlFlags
pub const fn intersection(self, other: QueryControlFlags) -> QueryControlFlags
Returns the intersection of self and other.
Sourcepub const fn difference(self, other: QueryControlFlags) -> QueryControlFlags
pub const fn difference(self, other: QueryControlFlags) -> QueryControlFlags
Returns self without the flags set in other.
Sourcepub const fn symmetric_difference(
self,
other: QueryControlFlags,
) -> QueryControlFlags
pub const fn symmetric_difference( self, other: QueryControlFlags, ) -> QueryControlFlags
Returns the flags that are set in self or other, but not in both.
Trait Implementations§
Source§impl BitAnd for QueryControlFlags
impl BitAnd for QueryControlFlags
Source§type Output = QueryControlFlags
type Output = QueryControlFlags
The resulting type after applying the
& operator.Source§fn bitand(self, rhs: QueryControlFlags) -> QueryControlFlags
fn bitand(self, rhs: QueryControlFlags) -> QueryControlFlags
Performs the
& operation. Read moreSource§impl BitAndAssign for QueryControlFlags
impl BitAndAssign for QueryControlFlags
Source§fn bitand_assign(&mut self, rhs: QueryControlFlags)
fn bitand_assign(&mut self, rhs: QueryControlFlags)
Performs the
&= operation. Read moreSource§impl BitOr for QueryControlFlags
impl BitOr for QueryControlFlags
Source§type Output = QueryControlFlags
type Output = QueryControlFlags
The resulting type after applying the
| operator.Source§fn bitor(self, rhs: QueryControlFlags) -> QueryControlFlags
fn bitor(self, rhs: QueryControlFlags) -> QueryControlFlags
Performs the
| operation. Read moreSource§impl BitOrAssign for QueryControlFlags
impl BitOrAssign for QueryControlFlags
Source§fn bitor_assign(&mut self, rhs: QueryControlFlags)
fn bitor_assign(&mut self, rhs: QueryControlFlags)
Performs the
|= operation. Read moreSource§impl BitXor for QueryControlFlags
impl BitXor for QueryControlFlags
Source§type Output = QueryControlFlags
type Output = QueryControlFlags
The resulting type after applying the
^ operator.Source§fn bitxor(self, rhs: QueryControlFlags) -> QueryControlFlags
fn bitxor(self, rhs: QueryControlFlags) -> QueryControlFlags
Performs the
^ operation. Read moreSource§impl BitXorAssign for QueryControlFlags
impl BitXorAssign for QueryControlFlags
Source§fn bitxor_assign(&mut self, rhs: QueryControlFlags)
fn bitxor_assign(&mut self, rhs: QueryControlFlags)
Performs the
^= operation. Read moreSource§impl Clone for QueryControlFlags
impl Clone for QueryControlFlags
Source§fn clone(&self) -> QueryControlFlags
fn clone(&self) -> QueryControlFlags
Returns a duplicate 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 QueryControlFlags
impl Debug for QueryControlFlags
Source§impl Default for QueryControlFlags
impl Default for QueryControlFlags
Source§fn default() -> QueryControlFlags
fn default() -> QueryControlFlags
Returns the “default value” for a type. Read more
Source§impl From<QueryControlFlags> for QueryControlFlags
impl From<QueryControlFlags> for QueryControlFlags
Source§fn from(val: QueryControlFlags) -> QueryControlFlags
fn from(val: QueryControlFlags) -> QueryControlFlags
Converts to this type from the input type.
Source§impl From<QueryControlFlags> for QueryControlFlags
impl From<QueryControlFlags> for QueryControlFlags
Source§fn from(val: QueryControlFlags) -> QueryControlFlags
fn from(val: QueryControlFlags) -> QueryControlFlags
Converts to this type from the input type.
Source§impl Hash for QueryControlFlags
impl Hash for QueryControlFlags
Source§impl PartialEq for QueryControlFlags
impl PartialEq for QueryControlFlags
Source§impl Sub for QueryControlFlags
impl Sub for QueryControlFlags
Source§type Output = QueryControlFlags
type Output = QueryControlFlags
The resulting type after applying the
- operator.Source§fn sub(self, rhs: QueryControlFlags) -> QueryControlFlags
fn sub(self, rhs: QueryControlFlags) -> QueryControlFlags
Performs the
- operation. Read moreSource§impl SubAssign for QueryControlFlags
impl SubAssign for QueryControlFlags
Source§fn sub_assign(&mut self, rhs: QueryControlFlags)
fn sub_assign(&mut self, rhs: QueryControlFlags)
Performs the
-= operation. Read moreimpl Copy for QueryControlFlags
impl Eq for QueryControlFlags
impl StructuralPartialEq for QueryControlFlags
Auto Trait Implementations§
impl Freeze for QueryControlFlags
impl RefUnwindSafe for QueryControlFlags
impl Send for QueryControlFlags
impl Sync for QueryControlFlags
impl Unpin for QueryControlFlags
impl UnwindSafe for QueryControlFlags
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