pub trait Bounded: Object {
// Required methods
fn bound(&self) -> &Bound;
fn bound_mut(&mut self) -> &mut Bound;
// Provided methods
fn hit_test(
&self,
line_segment: Segment3<f64>,
) -> Option<(Normalized<f64>, Point3<f64>)> { ... }
fn to_primitive(&self) -> Box<dyn Primitive<f64, Point3<f64>>> { ... }
}Expand description
A bounded object
Required Methods§
Provided Methods§
Sourcefn hit_test(
&self,
line_segment: Segment3<f64>,
) -> Option<(Normalized<f64>, Point3<f64>)>
fn hit_test( &self, line_segment: Segment3<f64>, ) -> Option<(Normalized<f64>, Point3<f64>)>
NOTE: tangent ‘intersections’ are ignored
fn to_primitive(&self) -> Box<dyn Primitive<f64, Point3<f64>>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.