Enum parcel_css::properties::background::BackgroundSize [−][src]
pub enum BackgroundSize {
Explicit {
width: LengthPercentageOrAuto,
height: LengthPercentageOrAuto,
},
Cover,
Contain,
}
Expand description
https://www.w3.org/TR/css-backgrounds-3/#background-size
Variants
Explicit
Cover
Contain
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for BackgroundSize
impl Send for BackgroundSize
impl Sync for BackgroundSize
impl Unpin for BackgroundSize
impl UnwindSafe for BackgroundSize
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more