#[repr(C)]pub enum StyleLineFitEdge {
Leading = 0,
Text = 1,
Cap = 2,
Ex = 3,
Ideographic = 4,
IdeographicInk = 5,
Alphabetic = 6,
}Expand description
Represents the line-fit-edge CSS property.
Selects which font metrics determine the over/under edges used when fitting an
inline box into its line box (CSS Inline Layout Module Level 3 §5). Auto on
text-box-edge defers to this value.
Variants§
Leading = 0
leading (initial): size the line box using the line-height leading model.
Text = 1
text: use the text-over / text-under baselines.
Cap = 2
cap: use the cap-height baseline for the over edge.
Ex = 3
ex: use the x-height baseline for the over edge.
Ideographic = 4
ideographic: use the ideographic-em baseline.
IdeographicInk = 5
ideographic-ink: use the ideographic-ink baseline.
Alphabetic = 6
alphabetic: use the alphabetic baseline for the under edge.
Trait Implementations§
Source§impl Clone for StyleLineFitEdge
impl Clone for StyleLineFitEdge
Source§fn clone(&self) -> StyleLineFitEdge
fn clone(&self) -> StyleLineFitEdge
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 StyleLineFitEdge
Source§impl Debug for StyleLineFitEdge
impl Debug for StyleLineFitEdge
Source§impl Default for StyleLineFitEdge
impl Default for StyleLineFitEdge
Source§fn default() -> StyleLineFitEdge
fn default() -> StyleLineFitEdge
Returns the “default value” for a type. Read more
impl Eq for StyleLineFitEdge
Source§impl FormatAsRustCode for StyleLineFitEdge
impl FormatAsRustCode for StyleLineFitEdge
fn format_as_rust_code(&self, _tabs: usize) -> String
Source§impl From<StyleLineFitEdge> for CssProperty
impl From<StyleLineFitEdge> for CssProperty
Source§fn from(e: StyleLineFitEdge) -> Self
fn from(e: StyleLineFitEdge) -> Self
Converts to this type from the input type.
Source§impl Hash for StyleLineFitEdge
impl Hash for StyleLineFitEdge
Source§impl Ord for StyleLineFitEdge
impl Ord for StyleLineFitEdge
Source§fn cmp(&self, other: &StyleLineFitEdge) -> Ordering
fn cmp(&self, other: &StyleLineFitEdge) -> 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 StyleLineFitEdge
impl PartialEq for StyleLineFitEdge
Source§impl PartialOrd for StyleLineFitEdge
impl PartialOrd for StyleLineFitEdge
Source§impl PrintAsCssValue for StyleLineFitEdge
impl PrintAsCssValue for StyleLineFitEdge
fn print_as_css_value(&self) -> String
impl StructuralPartialEq for StyleLineFitEdge
Auto Trait Implementations§
impl Freeze for StyleLineFitEdge
impl RefUnwindSafe for StyleLineFitEdge
impl Send for StyleLineFitEdge
impl Sync for StyleLineFitEdge
impl Unpin for StyleLineFitEdge
impl UnsafeUnpin for StyleLineFitEdge
impl UnwindSafe for StyleLineFitEdge
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