#[repr(C)]pub enum StyleTextBoxEdge {
Auto = 0,
TextEdge = 1,
CapHeight = 2,
ExHeight = 3,
}Expand description
Represents the text-box-edge CSS property.
Specifies the metrics used for determining the over/under edges of text
for the purposes of text-box-trim.
Variants§
Auto = 0
Use the line-fit-edge value (initial: text)
TextEdge = 1
Use the text-over / text-under baselines
CapHeight = 2
Use the cap-height baseline
ExHeight = 3
Use the x-height baseline
Trait Implementations§
Source§impl Clone for StyleTextBoxEdge
impl Clone for StyleTextBoxEdge
Source§fn clone(&self) -> StyleTextBoxEdge
fn clone(&self) -> StyleTextBoxEdge
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 StyleTextBoxEdge
impl Debug for StyleTextBoxEdge
Source§impl Default for StyleTextBoxEdge
impl Default for StyleTextBoxEdge
Source§fn default() -> StyleTextBoxEdge
fn default() -> StyleTextBoxEdge
Returns the “default value” for a type. Read more
Source§impl FormatAsRustCode for StyleTextBoxEdge
impl FormatAsRustCode for StyleTextBoxEdge
fn format_as_rust_code(&self, _tabs: usize) -> String
Source§impl From<StyleTextBoxEdge> for CssProperty
impl From<StyleTextBoxEdge> for CssProperty
Source§fn from(e: StyleTextBoxEdge) -> Self
fn from(e: StyleTextBoxEdge) -> Self
Converts to this type from the input type.
Source§impl Hash for StyleTextBoxEdge
impl Hash for StyleTextBoxEdge
Source§impl Ord for StyleTextBoxEdge
impl Ord for StyleTextBoxEdge
Source§fn cmp(&self, other: &StyleTextBoxEdge) -> Ordering
fn cmp(&self, other: &StyleTextBoxEdge) -> 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 StyleTextBoxEdge
impl PartialEq for StyleTextBoxEdge
Source§fn eq(&self, other: &StyleTextBoxEdge) -> bool
fn eq(&self, other: &StyleTextBoxEdge) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for StyleTextBoxEdge
impl PartialOrd for StyleTextBoxEdge
Source§impl PrintAsCssValue for StyleTextBoxEdge
impl PrintAsCssValue for StyleTextBoxEdge
fn print_as_css_value(&self) -> String
impl Copy for StyleTextBoxEdge
impl Eq for StyleTextBoxEdge
impl StructuralPartialEq for StyleTextBoxEdge
Auto Trait Implementations§
impl Freeze for StyleTextBoxEdge
impl RefUnwindSafe for StyleTextBoxEdge
impl Send for StyleTextBoxEdge
impl Sync for StyleTextBoxEdge
impl Unpin for StyleTextBoxEdge
impl UnsafeUnpin for StyleTextBoxEdge
impl UnwindSafe for StyleTextBoxEdge
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