Struct dae_parser::Input
source · [−]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
sourceimpl 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.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnwindSafe for Input
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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