[][src]Enum wavefront_rs::entity::Entity

pub enum Entity {
    Comment {
        content: String,
    },
    Object {
        name: String,
    },
    Group {
        name: String,
    },
    SmoothingGroup {
        name: String,
    },
    Mtllib {
        name: String,
    },
    Usemtl {
        name: String,
    },
    Vertex {
        x: f64,
        y: f64,
        z: f64,
        w: Option<f64>,
    },
    VertexNormal {
        x: f64,
        y: f64,
        z: f64,
    },
    VertexTexture {
        x: f64,
        y: f64,
        z: Option<f64>,
    },
    Face {
        vertices: Vec<FaceVertex>,
    },
    Line {
        vertices: Vec<i64>,
    },
}

Variants

Comment

Fields of Comment

content: String
Object

Fields of Object

name: String
Group

Fields of Group

name: String
SmoothingGroup

Fields of SmoothingGroup

name: String
Mtllib

Fields of Mtllib

name: String
Usemtl

Fields of Usemtl

name: String
Vertex

Fields of Vertex

x: f64y: f64z: f64w: Option<f64>
VertexNormal

Fields of VertexNormal

x: f64y: f64z: f64
VertexTexture

Fields of VertexTexture

x: f64y: f64z: Option<f64>
Face

Fields of Face

vertices: Vec<FaceVertex>
Line

Fields of Line

vertices: Vec<i64>

Trait Implementations

impl Debug for Entity[src]

impl PartialEq<Entity> for Entity[src]

impl StructuralPartialEq for Entity[src]

impl ToString for Entity[src]

Auto Trait Implementations

impl RefUnwindSafe for Entity

impl Send for Entity

impl Sync for Entity

impl Unpin for Entity

impl UnwindSafe for Entity

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> ToString for T where
    T: Display + ?Sized
[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.