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.

Fields

sid: Option<String>

A text string value containing the subidentifier of this element. This value must be unique within the scope of the parent element.

name: Option<String>

The text string name of this element.

ty: String

The type of the value data. This text string must be understood by the application.

semantic: Option<Semantic>

The user-defined meaning of the parameter.

Implementations

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.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. 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.