pub enum Alignment {
BottomLeft = 1,
BottomCenter = 2,
BottomRight = 3,
MiddleLeft = 4,
Center = 5,
MiddleRight = 6,
TopLeft = 7,
TopCenter = 8,
TopRight = 9,
}Expand description
Alignment types for subtitle positioning
Variants§
BottomLeft = 1
Bottom left alignment
BottomCenter = 2
Bottom center alignment
BottomRight = 3
Bottom right alignment
MiddleLeft = 4
Middle left alignment
Center = 5
Center alignment
MiddleRight = 6
Middle right alignment
TopLeft = 7
Top left alignment
TopCenter = 8
Top center alignment
TopRight = 9
Top right alignment
Implementations§
Source§impl Alignment
impl Alignment
Sourcepub fn from_value(value: u8) -> Self
pub fn from_value(value: u8) -> Self
Convert from numeric alignment value
Sourcepub fn from_ssa_legacy(value: u8) -> Self
pub fn from_ssa_legacy(value: u8) -> Self
Check if this is a legacy SSA alignment value
Trait Implementations§
impl Copy for Alignment
impl StructuralPartialEq for Alignment
Auto Trait Implementations§
impl Freeze for Alignment
impl RefUnwindSafe for Alignment
impl Send for Alignment
impl Sync for Alignment
impl Unpin for Alignment
impl UnsafeUnpin for Alignment
impl UnwindSafe for Alignment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more