pub enum TextAlign {
Start,
Center,
End,
Left,
Right,
}Expand description
Horizontal alignment for a cue / a style row.
Variants§
Start
Aligned to the text-direction start edge (left in left-to-right scripts). WebVTT default.
Center
Centered.
End
Aligned to the text-direction end edge (right in left-to-right scripts).
Left
Aligned to the left edge regardless of text direction.
Right
Aligned to the right edge regardless of text direction.
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 UnsafeUnpin 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