Element

Enum Element 

Source
pub enum Element<'a> {
Show 38 variants Include(&'a str), Import(&'a str), Option(Param<'a>), Film { ty: &'a str, params: ParamList<'a>, }, ColorSpace { ty: &'a str, }, Camera { ty: &'a str, params: ParamList<'a>, }, Sampler { ty: &'a str, params: ParamList<'a>, }, Integrator { ty: &'a str, params: ParamList<'a>, }, Accelerator { ty: &'a str, params: ParamList<'a>, }, CoordinateSystem { name: &'a str, }, CoordSysTransform { name: &'a str, }, PixelFilter { name: &'a str, }, Identity, Translate { v: [f32; 3], }, Scale { v: [f32; 3], }, Rotate { angle: f32, v: [f32; 3], }, LookAt { eye: [f32; 3], look_at: [f32; 3], up: [f32; 3], }, Transform { m: [f32; 16], }, ConcatTransform { m: [f32; 16], }, TransformTimes { start: f32, end: f32, }, ActiveTransform { ty: &'a str, }, ReverseOrientation, WorldBegin, AttributeBegin, AttributeEnd, Attribute { target: &'a str, params: ParamList<'a>, }, LightSource { ty: &'a str, params: ParamList<'a>, }, AreaLightSource { ty: &'a str, params: ParamList<'a>, }, Material { ty: &'a str, params: ParamList<'a>, }, MakeNamedMaterial { name: &'a str, params: ParamList<'a>, }, NamedMaterial { name: &'a str, }, Texture { name: &'a str, ty: &'a str, class: &'a str, params: ParamList<'a>, }, Shape { name: &'a str, params: ParamList<'a>, }, ObjectBegin { name: &'a str, }, ObjectEnd, ObjectInstance { name: &'a str, }, MakeNamedMedium { name: &'a str, params: ParamList<'a>, }, MediumInterface { interior: &'a str, exterior: &'a str, },
}
Expand description

Parsed directive.

Variants§

§

Include(&'a str)

§

Import(&'a str)

§

Option(Param<'a>)

§

Film

Fields

§ty: &'a str
§params: ParamList<'a>
§

ColorSpace

Fields

§ty: &'a str
§

Camera

Fields

§ty: &'a str
§params: ParamList<'a>
§

Sampler

Fields

§ty: &'a str
§params: ParamList<'a>
§

Integrator

Fields

§ty: &'a str
§params: ParamList<'a>
§

Accelerator

Fields

§ty: &'a str
§params: ParamList<'a>
§

CoordinateSystem

Fields

§name: &'a str
§

CoordSysTransform

Fields

§name: &'a str
§

PixelFilter

Fields

§name: &'a str
§

Identity

§

Translate

Translate x y z

Fields

§v: [f32; 3]
§

Scale

Scale x y z

Fields

§v: [f32; 3]
§

Rotate

Rotate angle x y z

Fields

§angle: f32
§v: [f32; 3]
§

LookAt

LookAt eye_x eye_y eye_z look_x look_y look_z up_x up_y up_z

Fields

§eye: [f32; 3]
§look_at: [f32; 3]
§up: [f32; 3]
§

Transform

Transform m00 ... m33

Fields

§m: [f32; 16]
§

ConcatTransform

ConcatTransform m00 .. m33

Fields

§m: [f32; 16]
§

TransformTimes

TransformTimes start end.

Fields

§start: f32
§end: f32
§

ActiveTransform

Fields

§ty: &'a str
§

ReverseOrientation

ReverseOrientation.

§

WorldBegin

WorldBegin

§

AttributeBegin

AttributeBegin

§

AttributeEnd

AttributeEnd

§

Attribute

Attribute "target" parameter-list

Fields

§target: &'a str
§params: ParamList<'a>
§

LightSource

Fields

§ty: &'a str
§params: ParamList<'a>
§

AreaLightSource

Fields

§ty: &'a str
§params: ParamList<'a>
§

Material

Fields

§ty: &'a str
§params: ParamList<'a>
§

MakeNamedMaterial

Fields

§name: &'a str
§params: ParamList<'a>
§

NamedMaterial

Fields

§name: &'a str
§

Texture

Texture "name" "type" "class" [ parameter-list ]

Fields

§name: &'a str
§ty: &'a str
§class: &'a str
§params: ParamList<'a>
§

Shape

Shape "name" parameter-list

Fields

§name: &'a str
§params: ParamList<'a>
§

ObjectBegin

Fields

§name: &'a str
§

ObjectEnd

§

ObjectInstance

Fields

§name: &'a str
§

MakeNamedMedium

Fields

§name: &'a str
§params: ParamList<'a>
§

MediumInterface

Fields

§interior: &'a str
§exterior: &'a str

Trait Implementations§

Source§

impl<'a> Debug for Element<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> PartialEq for Element<'a>

Source§

fn eq(&self, other: &Element<'a>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a> StructuralPartialEq for Element<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for Element<'a>

§

impl<'a> RefUnwindSafe for Element<'a>

§

impl<'a> Send for Element<'a>

§

impl<'a> Sync for Element<'a>

§

impl<'a> Unpin for Element<'a>

§

impl<'a> UnwindSafe for Element<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.