[][src]Struct wavefront::Object

pub struct Object<'a> { /* fields omitted */ }

An object defined in an OBJ.

Implementations

impl<'a> Object<'a>[src]

pub fn group(&self, name: &str) -> Option<Group<'a>>[src]

Returns a specific Group by name.

Note that if a name is not specified in the OBJ file, the name defaults to an empty string.

pub fn groups(
    &self
) -> impl ExactSizeIterator<Item = (&'a String, Group<'a>)> + Clone + 'a
[src]

Returns an iterator over the Groups in this Object.

pub fn polygons(&self) -> impl Iterator<Item = Polygon<'a>> + Clone + 'a[src]

Returns an iterator over the Polygons in this Object.

pub fn triangles(&self) -> impl Iterator<Item = [Vertex<'a>; 3]> + Clone + 'a[src]

Returns an iterator over the triangles in this Object.

See Polygon::triangles for more information.

Trait Implementations

impl<'a> Clone for Object<'a>[src]

impl<'a> Copy for Object<'a>[src]

impl<'a> Debug for Object<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Object<'a>[src]

impl<'a> Send for Object<'a>[src]

impl<'a> Sync for Object<'a>[src]

impl<'a> Unpin for Object<'a>[src]

impl<'a> UnwindSafe for Object<'a>[src]

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.