[][src]Struct c2::ToiRunner

pub struct ToiRunner<'a, ShapeA, ShapeB> { /* fields omitted */ }

A builder for finding the time of impact for two shapes

Implementations

impl<'a, ShapeA, ShapeB> ToiRunner<'a, ShapeA, ShapeB> where
    ShapeA: Shape,
    ShapeB: Shape
[src]

pub fn new(a: &'a ShapeA, b: &'a ShapeB) -> ToiRunner<'a, ShapeA, ShapeB>[src]

pub fn set_velocities(
    self,
    a_velocity: Vec2,
    b_velocity: Vec2
) -> ToiRunner<'a, ShapeA, ShapeB>
[src]

pub fn use_radius(self, use_radius: bool) -> ToiRunner<'a, ShapeA, ShapeB>[src]

pub fn set_iterations(
    self,
    iterations: &'a mut i32
) -> ToiRunner<'a, ShapeA, ShapeB>
[src]

pub fn run(self) -> f32[src]

Auto Trait Implementations

impl<'a, ShapeA, ShapeB> RefUnwindSafe for ToiRunner<'a, ShapeA, ShapeB> where
    ShapeA: RefUnwindSafe,
    ShapeB: RefUnwindSafe

impl<'a, ShapeA, ShapeB> Send for ToiRunner<'a, ShapeA, ShapeB> where
    ShapeA: Sync,
    ShapeB: Sync

impl<'a, ShapeA, ShapeB> Sync for ToiRunner<'a, ShapeA, ShapeB> where
    ShapeA: Sync,
    ShapeB: Sync

impl<'a, ShapeA, ShapeB> Unpin for ToiRunner<'a, ShapeA, ShapeB>

impl<'a, ShapeA, ShapeB> !UnwindSafe for ToiRunner<'a, ShapeA, ShapeB>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.