pub struct ComputedStyle {
pub opacity: Option<Expr>,
pub width: Option<Expr>,
pub height: Option<Expr>,
pub translate_x: Option<Expr>,
pub translate_y: Option<Expr>,
pub scale_x: Option<Expr>,
pub scale_y: Option<Expr>,
pub rotate: Option<Expr>,
pub node_refs: Vec<NodeRef>,
}Fields§
§opacity: Option<Expr>§width: Option<Expr>§height: Option<Expr>§translate_x: Option<Expr>§translate_y: Option<Expr>§scale_x: Option<Expr>§scale_y: Option<Expr>§rotate: Option<Expr>§node_refs: Vec<NodeRef>Implementations§
Source§impl ComputedStyle
impl ComputedStyle
pub fn is_empty(&self) -> bool
pub fn prefer(self, base: ComputedStyle) -> ComputedStyle
pub fn resolve( &self, scope: &dyn Scope, ) -> Result<AnimatedProperties, ComputedError>
Trait Implementations§
Source§impl Clone for ComputedStyle
impl Clone for ComputedStyle
Source§impl Debug for ComputedStyle
impl Debug for ComputedStyle
Source§impl Default for ComputedStyle
impl Default for ComputedStyle
Source§impl PartialEq for ComputedStyle
impl PartialEq for ComputedStyle
impl StructuralPartialEq for ComputedStyle
Auto Trait Implementations§
impl Freeze for ComputedStyle
impl RefUnwindSafe for ComputedStyle
impl Send for ComputedStyle
impl Sync for ComputedStyle
impl Unpin for ComputedStyle
impl UnsafeUnpin for ComputedStyle
impl UnwindSafe for ComputedStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more