pub enum TextAlign {
Auto,
LegacyLeft,
LegacyRight,
LegacyCenter,
}
Expand description
Used by block layout to implement the legacy behaviour of <center>
and <div align="left | right | center">
Variants§
Auto
No special legacy text align behaviour.
LegacyLeft
Corresponds to -webkit-left
or -moz-left
in browsers
LegacyRight
Corresponds to -webkit-right
or -moz-right
in browsers
LegacyCenter
Corresponds to -webkit-center
or -moz-center
in browsers
Trait Implementations§
impl Copy for TextAlign
impl Eq for TextAlign
impl StructuralPartialEq for TextAlign
Auto Trait Implementations§
impl Freeze for TextAlign
impl RefUnwindSafe for TextAlign
impl Send for TextAlign
impl Sync for TextAlign
impl Unpin for TextAlign
impl UnwindSafe for TextAlign
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