#[repr(C)]pub struct KeyframeStop {
pub permille: u16,
pub props: CssPropertyVec,
}Expand description
One stop of a @keyframes block (from = 0, to = 1000, 12.5% = 125).
Permille rather than an f32 percentage so the type stays Eq-capable —
Css must remain Eq/Ord (NodeData carries it), and 0.1% resolution is
beyond anything a keyframe needs.
Fields§
§permille: u160..=1000 position of this stop.
props: CssPropertyVecThe property values at this stop.
Trait Implementations§
Source§impl Clone for KeyframeStop
impl Clone for KeyframeStop
Source§fn clone(&self) -> KeyframeStop
fn clone(&self) -> KeyframeStop
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KeyframeStop
impl Debug for KeyframeStop
Source§impl Default for KeyframeStop
impl Default for KeyframeStop
Source§fn default() -> KeyframeStop
fn default() -> KeyframeStop
Returns the “default value” for a type. Read more
impl Eq for KeyframeStop
Source§impl Extend<KeyframeStop> for KeyframeStopVec
impl Extend<KeyframeStop> for KeyframeStopVec
Source§fn extend<T: IntoIterator<Item = KeyframeStop>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = KeyframeStop>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: T)
fn extend_one(&mut self, item: T)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<KeyframeStop> for KeyframeStopVec
impl FromIterator<KeyframeStop> for KeyframeStopVec
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = KeyframeStop>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = KeyframeStop>,
Creates a value from an iterator. Read more
Source§impl PartialEq for KeyframeStop
impl PartialEq for KeyframeStop
impl StructuralPartialEq for KeyframeStop
Auto Trait Implementations§
impl Freeze for KeyframeStop
impl RefUnwindSafe for KeyframeStop
impl Send for KeyframeStop
impl Sync for KeyframeStop
impl Unpin for KeyframeStop
impl UnsafeUnpin for KeyframeStop
impl UnwindSafe for KeyframeStop
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