pub struct Param {
pub sid: Option<String>,
pub name: Option<String>,
pub ty: String,
pub semantic: Option<Semantic>,
}
Expand description
Declares parametric information for its parent element.
A text string value containing the subidentifier of this element.
This value must be unique within the scope of the parent element.
The text string name of this element.
The type of the value data. This text string must be understood by the application.
The user-defined meaning of the parameter.
Construct a new Param
with given name and type.
Construct parameters corresponding to X,Y,Z
accesses, used for vector values.
Construct parameters corresponding to S,T
accesses, used for texture coordinates.
Performs copy-assignment from
source
.
Read more
Formats the value using the given formatter.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.