pub enum BackgroundOrigin {
BorderBox,
PaddingBox,
ContentBox,
}Expand description
The background-origin keyword.
Variants§
BorderBox
border-box — origin at the border box.
PaddingBox
padding-box — origin at the padding box. Default.
ContentBox
content-box — origin at the content box.
Trait Implementations§
Source§impl Clone for BackgroundOrigin
impl Clone for BackgroundOrigin
Source§fn clone(&self) -> BackgroundOrigin
fn clone(&self) -> BackgroundOrigin
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 moreimpl Copy for BackgroundOrigin
Source§impl Debug for BackgroundOrigin
impl Debug for BackgroundOrigin
impl Eq for BackgroundOrigin
Source§impl Hash for BackgroundOrigin
impl Hash for BackgroundOrigin
Source§impl PartialEq for BackgroundOrigin
impl PartialEq for BackgroundOrigin
Source§fn eq(&self, other: &BackgroundOrigin) -> bool
fn eq(&self, other: &BackgroundOrigin) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BackgroundOrigin
Auto Trait Implementations§
impl Freeze for BackgroundOrigin
impl RefUnwindSafe for BackgroundOrigin
impl Send for BackgroundOrigin
impl Sync for BackgroundOrigin
impl Unpin for BackgroundOrigin
impl UnsafeUnpin for BackgroundOrigin
impl UnwindSafe for BackgroundOrigin
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