Trait truster::intersection::Hit [−][src]
pub trait Hit<T = Intersection> { fn hit(&self) -> Option<&T>; }
Expand description
Hit holds a hit function which should return an instance of T
if there is a hit. None
otherwise.
Known implementations: Vec
Required methods
Implementations on Foreign Types
Implement Hit to get the first intersection which is a hit. The list should be sorted. If
there are no hits, None
is returned.