Struct dae_parser::Sampler
source · [−]Expand description
Declares an interpolation sampling function for an animation.
Fields
id: Option<String>A text string containing the unique identifier of the element.
inputs: Vec<Input>Assigns semantics to each Source. See the COLLADA spec for details.
interpolation: usizeThe index into inputs for the Semantic::Interpolation input (which must exist).
Implementations
sourceimpl Sampler
impl Sampler
sourcepub fn new(inputs: Vec<Input>) -> Self
pub fn new(inputs: Vec<Input>) -> Self
Construct a new Sampler from a list of inputs.
One of the inputs must have Semantic::Interpolation.
sourceimpl Sampler
impl Sampler
sourcepub fn interpolation_input(&self) -> &Input
pub fn interpolation_input(&self) -> &Input
The input with Semantic::Interpolation.
Trait Implementations
sourceimpl HasId for Sampler
impl HasId for Sampler
sourcefn get_local_map<'a, 'b>(
maps: &'b LocalMaps<'a>
) -> &'b Option<LocalMap<'a, Self>>
fn get_local_map<'a, 'b>(
maps: &'b LocalMaps<'a>
) -> &'b Option<LocalMap<'a, Self>>
Extract the relevant LocalMap field from a LocalMaps.
sourcefn get_local_map_mut<'a, 'b>(
maps: &'b mut LocalMaps<'a>
) -> &'b mut Option<LocalMap<'a, Self>>
fn get_local_map_mut<'a, 'b>(
maps: &'b mut LocalMaps<'a>
) -> &'b mut Option<LocalMap<'a, Self>>
Extract the relevant LocalMap field from a LocalMaps.
Auto Trait Implementations
impl RefUnwindSafe for Sampler
impl Send for Sampler
impl Sync for Sampler
impl Unpin for Sampler
impl UnwindSafe for Sampler
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more