pub enum BackgroundPosition {
Center,
TopLeft,
TopRight,
BottomLeft,
BottomRight,
}Expand description
Where a background image is positioned on a page (relevant for
cover / contain when the image doesn’t fill the page exactly).
Variants§
Trait Implementations§
Source§impl Clone for BackgroundPosition
impl Clone for BackgroundPosition
Source§fn clone(&self) -> BackgroundPosition
fn clone(&self) -> BackgroundPosition
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 BackgroundPosition
impl Debug for BackgroundPosition
Source§impl Default for BackgroundPosition
impl Default for BackgroundPosition
Source§fn default() -> BackgroundPosition
fn default() -> BackgroundPosition
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BackgroundPosition
impl<'de> Deserialize<'de> for BackgroundPosition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BackgroundPosition
impl PartialEq for BackgroundPosition
Source§fn eq(&self, other: &BackgroundPosition) -> bool
fn eq(&self, other: &BackgroundPosition) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BackgroundPosition
impl Serialize for BackgroundPosition
impl Copy for BackgroundPosition
impl Eq for BackgroundPosition
impl StructuralPartialEq for BackgroundPosition
Auto Trait Implementations§
impl Freeze for BackgroundPosition
impl RefUnwindSafe for BackgroundPosition
impl Send for BackgroundPosition
impl Sync for BackgroundPosition
impl Unpin for BackgroundPosition
impl UnsafeUnpin for BackgroundPosition
impl UnwindSafe for BackgroundPosition
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