Skip to main content

Bounded

Trait Bounded 

Source
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§

Source

fn bound(&self) -> &Bound

Source

fn bound_mut(&mut self) -> &mut Bound

Provided Methods§

Source

fn hit_test( &self, line_segment: Segment3<f64>, ) -> Option<(Normalized<f64>, Point3<f64>)>

NOTE: tangent ‘intersections’ are ignored

Source

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.

Implementations on Foreign Types§

Source§

impl Bounded for (Position, &Bound)

Source§

fn bound(&self) -> &Bound

Source§

fn bound_mut(&mut self) -> &mut Bound

Source§

impl Bounded for (Position, Bound)

Source§

fn bound(&self) -> &Bound

Source§

fn bound_mut(&mut self) -> &mut Bound

Implementors§