#[repr(C)]pub struct StylePerspectiveOrigin {
pub x: PixelValue,
pub y: PixelValue,
}Expand description
Represents a perspective-origin attribute
Fields§
§x: PixelValue§y: PixelValueImplementations§
Source§impl StylePerspectiveOrigin
impl StylePerspectiveOrigin
pub fn interpolate(&self, other: &Self, t: f32) -> Self
Trait Implementations§
Source§impl Clone for StylePerspectiveOrigin
impl Clone for StylePerspectiveOrigin
Source§fn clone(&self) -> StylePerspectiveOrigin
fn clone(&self) -> StylePerspectiveOrigin
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 StylePerspectiveOrigin
impl Debug for StylePerspectiveOrigin
Source§impl Default for StylePerspectiveOrigin
impl Default for StylePerspectiveOrigin
Source§impl From<StylePerspectiveOrigin> for CssProperty
impl From<StylePerspectiveOrigin> for CssProperty
Source§fn from(e: StylePerspectiveOrigin) -> Self
fn from(e: StylePerspectiveOrigin) -> Self
Converts to this type from the input type.
Source§impl Hash for StylePerspectiveOrigin
impl Hash for StylePerspectiveOrigin
Source§impl Ord for StylePerspectiveOrigin
impl Ord for StylePerspectiveOrigin
Source§fn cmp(&self, other: &StylePerspectiveOrigin) -> Ordering
fn cmp(&self, other: &StylePerspectiveOrigin) -> 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 StylePerspectiveOrigin
impl PartialEq for StylePerspectiveOrigin
Source§impl PartialOrd for StylePerspectiveOrigin
impl PartialOrd for StylePerspectiveOrigin
Source§impl PrintAsCssValue for StylePerspectiveOrigin
impl PrintAsCssValue for StylePerspectiveOrigin
fn print_as_css_value(&self) -> String
impl Copy for StylePerspectiveOrigin
impl Eq for StylePerspectiveOrigin
impl StructuralPartialEq for StylePerspectiveOrigin
Auto Trait Implementations§
impl Freeze for StylePerspectiveOrigin
impl RefUnwindSafe for StylePerspectiveOrigin
impl Send for StylePerspectiveOrigin
impl Sync for StylePerspectiveOrigin
impl Unpin for StylePerspectiveOrigin
impl UnwindSafe for StylePerspectiveOrigin
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