#[repr(C)]pub struct StyleTransformOrigin {
pub x: PixelValue,
pub y: PixelValue,
}Expand description
Represents a transform-origin attribute
Fields§
§x: PixelValue§y: PixelValueImplementations§
Source§impl StyleTransformOrigin
impl StyleTransformOrigin
pub fn interpolate(&self, other: &Self, t: f32) -> Self
Trait Implementations§
Source§impl Clone for StyleTransformOrigin
impl Clone for StyleTransformOrigin
Source§fn clone(&self) -> StyleTransformOrigin
fn clone(&self) -> StyleTransformOrigin
Returns a duplicate of the value. Read more
1.0.0 · 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 StyleTransformOrigin
impl Debug for StyleTransformOrigin
Source§impl Default for StyleTransformOrigin
impl Default for StyleTransformOrigin
Source§impl From<StyleTransformOrigin> for CssProperty
impl From<StyleTransformOrigin> for CssProperty
Source§fn from(e: StyleTransformOrigin) -> Self
fn from(e: StyleTransformOrigin) -> Self
Converts to this type from the input type.
Source§impl Hash for StyleTransformOrigin
impl Hash for StyleTransformOrigin
Source§impl Ord for StyleTransformOrigin
impl Ord for StyleTransformOrigin
Source§fn cmp(&self, other: &StyleTransformOrigin) -> Ordering
fn cmp(&self, other: &StyleTransformOrigin) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StyleTransformOrigin
impl PartialEq for StyleTransformOrigin
Source§impl PartialOrd for StyleTransformOrigin
impl PartialOrd for StyleTransformOrigin
Source§impl PrintAsCssValue for StyleTransformOrigin
impl PrintAsCssValue for StyleTransformOrigin
fn print_as_css_value(&self) -> String
impl Copy for StyleTransformOrigin
impl Eq for StyleTransformOrigin
impl StructuralPartialEq for StyleTransformOrigin
Auto Trait Implementations§
impl Freeze for StyleTransformOrigin
impl RefUnwindSafe for StyleTransformOrigin
impl Send for StyleTransformOrigin
impl Sync for StyleTransformOrigin
impl Unpin for StyleTransformOrigin
impl UnwindSafe for StyleTransformOrigin
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