Struct dae_parser::Input
source · pub struct Input {
pub semantic: Semantic,
pub source: Url,
}
Expand description
Declares the input semantics of a data source and connects a consumer to that source.
In the COLLADA spec this is called “<input>
(unshared)”.
Fields§
§semantic: Semantic
The user-defined meaning of the input connection.
source: Url
The location of the data source.
The type referenced here depends on the semantic
:
- For
Semantic::Vertex
it references aVertices
- For most other semantics it references a
Source
Implementations§
source§impl Input
impl Input
sourcepub fn source_as_source(&self) -> &UrlRef<Source>
pub fn source_as_source(&self) -> &UrlRef<Source>
Typecast self.source
as a UrlRef<Source>
.
The semantic
is checked in debug mode to ensure that it is compatible with a
Source
target.
sourcepub fn source_as_vertices(&self) -> &UrlRef<Vertices>
pub fn source_as_vertices(&self) -> &UrlRef<Vertices>
Typecast self.source
as a UrlRef<Vertices>
.
The semantic
is checked in debug mode to ensure that it is compatible with a
Vertices
target.