#[repr(C)]pub enum StyleTextAlignLast {
Auto = 0,
Start = 1,
End = 2,
Left = 3,
Right = 4,
Center = 5,
Justify = 6,
}Expand description
Controls alignment of the last line of a block or a line right before a forced line break.
CSS Text Level 3 §7.2: https://www.w3.org/TR/css-text-3/#text-align-last-property
Variants§
Auto = 0
Alignment of the last line is determined by text-align (or start if justify).
Start = 1
Align to the start edge of the line box.
End = 2
Align to the end edge of the line box.
Left = 3
Align to the line left.
Right = 4
Align to the line right.
Center = 5
Center the content.
Justify = 6
Justify the content.
Trait Implementations§
Source§impl Clone for StyleTextAlignLast
impl Clone for StyleTextAlignLast
Source§fn clone(&self) -> StyleTextAlignLast
fn clone(&self) -> StyleTextAlignLast
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 StyleTextAlignLast
impl Debug for StyleTextAlignLast
Source§impl Default for StyleTextAlignLast
impl Default for StyleTextAlignLast
Source§fn default() -> StyleTextAlignLast
fn default() -> StyleTextAlignLast
Returns the “default value” for a type. Read more
Source§impl FormatAsRustCode for StyleTextAlignLast
impl FormatAsRustCode for StyleTextAlignLast
fn format_as_rust_code(&self, _tabs: usize) -> String
Source§impl From<StyleTextAlignLast> for CssProperty
impl From<StyleTextAlignLast> for CssProperty
Source§fn from(e: StyleTextAlignLast) -> Self
fn from(e: StyleTextAlignLast) -> Self
Converts to this type from the input type.
Source§impl Hash for StyleTextAlignLast
impl Hash for StyleTextAlignLast
Source§impl Ord for StyleTextAlignLast
impl Ord for StyleTextAlignLast
Source§fn cmp(&self, other: &StyleTextAlignLast) -> Ordering
fn cmp(&self, other: &StyleTextAlignLast) -> 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 StyleTextAlignLast
impl PartialEq for StyleTextAlignLast
Source§fn eq(&self, other: &StyleTextAlignLast) -> bool
fn eq(&self, other: &StyleTextAlignLast) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for StyleTextAlignLast
impl PartialOrd for StyleTextAlignLast
Source§impl PrintAsCssValue for StyleTextAlignLast
impl PrintAsCssValue for StyleTextAlignLast
fn print_as_css_value(&self) -> String
impl Copy for StyleTextAlignLast
impl Eq for StyleTextAlignLast
impl StructuralPartialEq for StyleTextAlignLast
Auto Trait Implementations§
impl Freeze for StyleTextAlignLast
impl RefUnwindSafe for StyleTextAlignLast
impl Send for StyleTextAlignLast
impl Sync for StyleTextAlignLast
impl Unpin for StyleTextAlignLast
impl UnsafeUnpin for StyleTextAlignLast
impl UnwindSafe for StyleTextAlignLast
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