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
ColorSpace
Camera
Sampler
Integrator
Accelerator
CoordinateSystem
CoordSysTransform
PixelFilter
Identity
Translate
Translate x y z
Scale
Scale x y z
Rotate
Rotate angle x y z
LookAt
LookAt eye_x eye_y eye_z look_x look_y look_z up_x up_y up_z
Transform
Transform m00 ... m33
ConcatTransform
ConcatTransform m00 .. m33
TransformTimes
TransformTimes start end.
ActiveTransform
ReverseOrientation
ReverseOrientation.
WorldBegin
WorldBegin
AttributeBegin
AttributeBegin
AttributeEnd
AttributeEnd
Attribute
Attribute "target" parameter-list
LightSource
AreaLightSource
Material
MakeNamedMaterial
NamedMaterial
Texture
Texture "name" "type" "class" [ parameter-list ]
Shape
Shape "name" parameter-list
ObjectBegin
ObjectEnd
ObjectInstance
MakeNamedMedium
MediumInterface
Trait Implementations§
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more