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: SemanticThe user-defined meaning of the input connection.
source: UrlThe location of the data source.
The type referenced here depends on the semantic:
- For
Semantic::Vertexit 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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnwindSafe for Input
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more