#[non_exhaustive]pub enum BackgroundOrigin {
BorderBox,
ContentBox,
PaddingBox,
Raw(Raw),
}Expand description
A value of background-origin.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BorderBox
border-box.
ContentBox
content-box.
PaddingBox
padding-box.
Raw(Raw)
Any other value, passed through unchecked.
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 moreSource§impl Debug for BackgroundOrigin
impl Debug for BackgroundOrigin
Source§impl Display for BackgroundOrigin
impl Display for BackgroundOrigin
Source§impl From<Raw> for BackgroundOrigin
impl From<Raw> for BackgroundOrigin
Source§impl PartialEq for BackgroundOrigin
impl PartialEq for BackgroundOrigin
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