pub enum SizeSource {
Auto,
Cover,
Contain,
Fixed(Option<Length>, Option<Length>),
}Expand description
background-size as the sheet wrote it, before the cascade knows
the font size its lengths are relative to.
Variants§
Auto
auto.
Cover
cover.
Contain
contain.
Fixed(Option<Length>, Option<Length>)
One or two written lengths, None on an axis written auto.
Trait Implementations§
Source§impl Clone for SizeSource
impl Clone for SizeSource
Source§fn clone(&self) -> SizeSource
fn clone(&self) -> SizeSource
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 SizeSource
Source§impl Debug for SizeSource
impl Debug for SizeSource
Source§impl PartialEq for SizeSource
impl PartialEq for SizeSource
impl StructuralPartialEq for SizeSource
Auto Trait Implementations§
impl Freeze for SizeSource
impl RefUnwindSafe for SizeSource
impl Send for SizeSource
impl Sync for SizeSource
impl Unpin for SizeSource
impl UnsafeUnpin for SizeSource
impl UnwindSafe for SizeSource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.