pub struct Key<'c, 'a> { /* private fields */ }Expand description
One key of a KeyColumns. Which value accessor applies is the attribute’s
to say: the run a key belongs to is read as one type throughout.
Implementations§
Source§impl<'c, 'a> Key<'c, 'a>
impl<'c, 'a> Key<'c, 'a>
pub fn interpolation(&self) -> InterpolationType
Sourcepub fn curve(&self) -> Option<&'a KeyCurve>
pub fn curve(&self) -> Option<&'a KeyCurve>
The control values of a Hermite or Bezier key; None for any other.
Sourcepub fn easing_rate(&self) -> f32
pub fn easing_rate(&self) -> f32
The rate of an ease that takes one; 0.0 for any other key.
pub fn float(&self) -> f32
pub fn int(&self) -> i32
pub fn bool(&self) -> bool
pub fn uint(&self) -> u32
Sourcepub fn cell(&self) -> u32
pub fn cell(&self) -> u32
The cell the key shows, as an index for KeyColumns::cell.
pub fn part_color(&self) -> &'c PartAttributePartColor
pub fn shader(&self) -> &'c PartAttributeShader
pub fn vertex(&self) -> &'c PartAttributeVertex
pub fn skew(&self) -> (f32, f32)
pub fn deform(&self) -> PartAttributeDeform<'a>
Trait Implementations§
Auto Trait Implementations§
impl<'c, 'a> Freeze for Key<'c, 'a>
impl<'c, 'a> RefUnwindSafe for Key<'c, 'a>
impl<'c, 'a> Send for Key<'c, 'a>
impl<'c, 'a> Sync for Key<'c, 'a>
impl<'c, 'a> Unpin for Key<'c, 'a>
impl<'c, 'a> UnsafeUnpin for Key<'c, 'a>
impl<'c, 'a> UnwindSafe for Key<'c, 'a>
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