#[repr(C)]pub struct StyleObjectPosition {
pub horizontal: BackgroundPositionHorizontal,
pub vertical: BackgroundPositionVertical,
}Expand description
CSS object-position property: position of replaced element content within its box.
CSS Images Level 3 §5.6 — default: 50% 50% (centered)
Fields§
§horizontal: BackgroundPositionHorizontal§vertical: BackgroundPositionVerticalTrait Implementations§
Source§impl Clone for StyleObjectPosition
impl Clone for StyleObjectPosition
Source§fn clone(&self) -> StyleObjectPosition
fn clone(&self) -> StyleObjectPosition
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 StyleObjectPosition
impl Debug for StyleObjectPosition
Source§impl Default for StyleObjectPosition
impl Default for StyleObjectPosition
Source§impl FormatAsRustCode for StyleObjectPosition
impl FormatAsRustCode for StyleObjectPosition
fn format_as_rust_code(&self, _tabs: usize) -> String
Source§impl From<StyleObjectPosition> for CssProperty
impl From<StyleObjectPosition> for CssProperty
Source§fn from(e: StyleObjectPosition) -> Self
fn from(e: StyleObjectPosition) -> Self
Converts to this type from the input type.
Source§impl Hash for StyleObjectPosition
impl Hash for StyleObjectPosition
Source§impl Ord for StyleObjectPosition
impl Ord for StyleObjectPosition
Source§fn cmp(&self, other: &StyleObjectPosition) -> Ordering
fn cmp(&self, other: &StyleObjectPosition) -> Ordering
1.21.0 (const: unstable) · 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 StyleObjectPosition
impl PartialEq for StyleObjectPosition
Source§fn eq(&self, other: &StyleObjectPosition) -> bool
fn eq(&self, other: &StyleObjectPosition) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for StyleObjectPosition
impl PartialOrd for StyleObjectPosition
Source§impl PrintAsCssValue for StyleObjectPosition
impl PrintAsCssValue for StyleObjectPosition
fn print_as_css_value(&self) -> String
impl Copy for StyleObjectPosition
impl Eq for StyleObjectPosition
impl StructuralPartialEq for StyleObjectPosition
Auto Trait Implementations§
impl Freeze for StyleObjectPosition
impl RefUnwindSafe for StyleObjectPosition
impl Send for StyleObjectPosition
impl Sync for StyleObjectPosition
impl Unpin for StyleObjectPosition
impl UnsafeUnpin for StyleObjectPosition
impl UnwindSafe for StyleObjectPosition
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