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]
impl<N: Real> ShapeHandle<N>
pub fn new<S: Shape<N>>(shape: S) -> ShapeHandle<N>
[src]
pub fn new<S: Shape<N>>(shape: S) -> ShapeHandle<N>
Creates a sharable shape handle from a shape.
Methods from Deref<Target = Shape<N>>
pub fn is_shape<T: Shape<N>>(&self) -> bool
[src]
pub fn is_shape<T: Shape<N>>(&self) -> bool
Tests if this shape has a specific type T
.
pub fn as_shape<T: Shape<N>>(&self) -> Option<&T>
[src]
pub fn as_shape<T: Shape<N>>(&self) -> Option<&T>
Performs the cast.
Trait Implementations
impl<N: Clone + Real> Clone for ShapeHandle<N>
[src]
impl<N: Clone + Real> Clone for ShapeHandle<N>
fn clone(&self) -> ShapeHandle<N>
[src]
fn clone(&self) -> ShapeHandle<N>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<N: Real> AsRef<Shape<N>> for ShapeHandle<N>
[src]
impl<N: Real> AsRef<Shape<N>> for ShapeHandle<N>
impl<N: Real> Deref for ShapeHandle<N>
[src]
impl<N: Real> Deref for ShapeHandle<N>
Auto Trait Implementations
impl<N> Send for ShapeHandle<N>
impl<N> Send for ShapeHandle<N>
impl<N> Sync for ShapeHandle<N>
impl<N> Sync for ShapeHandle<N>