Struct ncollide2d::shape::ShapeHandle
[−]
[src]
pub struct ShapeHandle<N: Real> { /* fields omitted */ }
A shared immutable handle to an abstract shape.
Methods
impl<N: Real> ShapeHandle<N>
[src]
pub fn new<S: Shape<N>>(shape: S) -> ShapeHandle<N>
[src]
Creates a sharable shape handle from a shape.
Methods from Deref<Target = Shape<N>>
pub fn is_shape<T: Shape<N>>(&self) -> bool
[src]
Tests if this shape has a specific type T
.
pub fn as_shape<T: Shape<N>>(&self) -> Option<&T>
[src]
Performs the cast.
Trait Implementations
impl<N: Clone + Real> Clone for ShapeHandle<N>
[src]
fn clone(&self) -> ShapeHandle<N>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more