#[repr(C)]pub enum StyleBaselineSource {
Auto = 0,
First = 1,
Last = 2,
}Expand description
Represents the baseline-source CSS property.
Selects which of the box’s baselines is used as its baseline in the parent’s baseline alignment (CSS Inline Layout Module Level 3 §5.2).
Variants§
Auto = 0
auto: last baseline for inline-block / IFC roots, first baseline otherwise.
First = 1
first: use the first baseline set.
Last = 2
last: use the last baseline set.
Trait Implementations§
Source§impl Clone for StyleBaselineSource
impl Clone for StyleBaselineSource
Source§fn clone(&self) -> StyleBaselineSource
fn clone(&self) -> StyleBaselineSource
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 StyleBaselineSource
Source§impl Debug for StyleBaselineSource
impl Debug for StyleBaselineSource
Source§impl Default for StyleBaselineSource
impl Default for StyleBaselineSource
Source§fn default() -> StyleBaselineSource
fn default() -> StyleBaselineSource
Returns the “default value” for a type. Read more
impl Eq for StyleBaselineSource
Source§impl FormatAsRustCode for StyleBaselineSource
impl FormatAsRustCode for StyleBaselineSource
fn format_as_rust_code(&self, _tabs: usize) -> String
Source§impl From<StyleBaselineSource> for CssProperty
impl From<StyleBaselineSource> for CssProperty
Source§fn from(e: StyleBaselineSource) -> Self
fn from(e: StyleBaselineSource) -> Self
Converts to this type from the input type.
Source§impl Hash for StyleBaselineSource
impl Hash for StyleBaselineSource
Source§impl Ord for StyleBaselineSource
impl Ord for StyleBaselineSource
Source§fn cmp(&self, other: &StyleBaselineSource) -> Ordering
fn cmp(&self, other: &StyleBaselineSource) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StyleBaselineSource
impl PartialEq for StyleBaselineSource
Source§impl PartialOrd for StyleBaselineSource
impl PartialOrd for StyleBaselineSource
Source§impl PrintAsCssValue for StyleBaselineSource
impl PrintAsCssValue for StyleBaselineSource
fn print_as_css_value(&self) -> String
impl StructuralPartialEq for StyleBaselineSource
Auto Trait Implementations§
impl Freeze for StyleBaselineSource
impl RefUnwindSafe for StyleBaselineSource
impl Send for StyleBaselineSource
impl Sync for StyleBaselineSource
impl Unpin for StyleBaselineSource
impl UnsafeUnpin for StyleBaselineSource
impl UnwindSafe for StyleBaselineSource
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