Enum dae_parser::ParamType
source · [−]pub enum ParamType {
Float(f32),
Float2([f32; 2]),
Float3(Box<[f32; 3]>),
Float4(Box<[f32; 4]>),
Surface(Box<Surface>),
Sampler2D(Box<Sampler2D>),
Other(Box<Element>),
}
Expand description
A parameter’s type. We do not have full support here,
but unknown types can be retrieved in the Other
variant.
Variants
Float(f32)
float
type
Float2([f32; 2])
float2
type
Float3(Box<[f32; 3]>)
float3
type
Float4(Box<[f32; 4]>)
float4
type
Surface(Box<Surface>)
surface
type
Sampler2D(Box<Sampler2D>)
sampler2D
type
Other(Box<Element>)
Any other type, stored as a raw XML element.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ParamType
impl Send for ParamType
impl Sync for ParamType
impl Unpin for ParamType
impl UnwindSafe for ParamType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more