pub enum HitObjectQuery {
IsEmpty,
IsHit,
IsMiss,
Intersection,
}Expand description
A property of a HitObject retrieved by an Expression::HitObjectQuery.
Variants§
IsEmpty
Whether the hit object is empty. Returns a Bool scalar.
IsHit
Whether the hit object represents a hit. Returns a Bool scalar.
IsMiss
Whether the hit object represents a miss. Returns a Bool scalar.
Intersection
The intersection recorded in the hit object.
Returns a SpecialTypes::ray_intersection struct. For a miss or an
empty hit object, all members are zero, so kind is
RayQueryIntersection::None.
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for HitObjectQuery
impl<'arbitrary> Arbitrary<'arbitrary> for HitObjectQuery
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§impl Clone for HitObjectQuery
impl Clone for HitObjectQuery
Source§fn clone(&self) -> HitObjectQuery
fn clone(&self) -> HitObjectQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HitObjectQuery
impl Debug for HitObjectQuery
Source§impl<'de> Deserialize<'de> for HitObjectQuery
impl<'de> Deserialize<'de> for HitObjectQuery
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for HitObjectQuery
impl Hash for HitObjectQuery
Source§impl PartialEq for HitObjectQuery
impl PartialEq for HitObjectQuery
Source§fn eq(&self, other: &HitObjectQuery) -> bool
fn eq(&self, other: &HitObjectQuery) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HitObjectQuery
impl Serialize for HitObjectQuery
impl Copy for HitObjectQuery
impl Eq for HitObjectQuery
impl StructuralPartialEq for HitObjectQuery
Auto Trait Implementations§
impl Freeze for HitObjectQuery
impl RefUnwindSafe for HitObjectQuery
impl Send for HitObjectQuery
impl Sync for HitObjectQuery
impl Unpin for HitObjectQuery
impl UnsafeUnpin for HitObjectQuery
impl UnwindSafe for HitObjectQuery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more