#[repr(C)]pub struct StyleBackgroundPosition {
pub horizontal: BackgroundPositionHorizontal,
pub vertical: BackgroundPositionVertical,
}Expand description
Represents a background-position attribute
Fields§
§horizontal: BackgroundPositionHorizontal§vertical: BackgroundPositionVerticalImplementations§
Source§impl StyleBackgroundPosition
impl StyleBackgroundPosition
pub fn scale_for_dpi(&mut self, scale_factor: f32)
Trait Implementations§
Source§impl Clone for StyleBackgroundPosition
impl Clone for StyleBackgroundPosition
Source§fn clone(&self) -> StyleBackgroundPosition
fn clone(&self) -> StyleBackgroundPosition
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 StyleBackgroundPosition
impl Debug for StyleBackgroundPosition
Source§impl Default for StyleBackgroundPosition
impl Default for StyleBackgroundPosition
Source§impl FromIterator<StyleBackgroundPosition> for StyleBackgroundPositionVec
impl FromIterator<StyleBackgroundPosition> for StyleBackgroundPositionVec
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = StyleBackgroundPosition>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = StyleBackgroundPosition>,
Creates a value from an iterator. Read more
Source§impl Hash for StyleBackgroundPosition
impl Hash for StyleBackgroundPosition
Source§impl Ord for StyleBackgroundPosition
impl Ord for StyleBackgroundPosition
Source§fn cmp(&self, other: &StyleBackgroundPosition) -> Ordering
fn cmp(&self, other: &StyleBackgroundPosition) -> 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 StyleBackgroundPosition
impl PartialEq for StyleBackgroundPosition
Source§impl PartialOrd for StyleBackgroundPosition
impl PartialOrd for StyleBackgroundPosition
Source§impl PrintAsCssValue for StyleBackgroundPosition
impl PrintAsCssValue for StyleBackgroundPosition
fn print_as_css_value(&self) -> String
impl Copy for StyleBackgroundPosition
impl Eq for StyleBackgroundPosition
impl StructuralPartialEq for StyleBackgroundPosition
Auto Trait Implementations§
impl Freeze for StyleBackgroundPosition
impl RefUnwindSafe for StyleBackgroundPosition
impl Send for StyleBackgroundPosition
impl Sync for StyleBackgroundPosition
impl Unpin for StyleBackgroundPosition
impl UnwindSafe for StyleBackgroundPosition
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