#[non_exhaustive]pub enum TextShaping {
Auto,
Simple,
Complex,
}Expand description
Text shaping engine selection (FFmpeg ass filter’s shaping option).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Auto
Leave libass at its default (complex shaping).
Simple
Fast left-to-right shaping only; no ligatures, no bidi. Wrong for Arabic/Hebrew/Indic text, occasionally useful for speed or VSFilter compatibility.
Complex
Full HarfBuzz shaping (ligatures, complex scripts, bidi).
Trait Implementations§
Source§impl Clone for TextShaping
impl Clone for TextShaping
Source§fn clone(&self) -> TextShaping
fn clone(&self) -> TextShaping
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 moreimpl Copy for TextShaping
Source§impl Debug for TextShaping
impl Debug for TextShaping
Source§impl Default for TextShaping
impl Default for TextShaping
Source§fn default() -> TextShaping
fn default() -> TextShaping
Returns the “default value” for a type. Read more
impl Eq for TextShaping
Source§impl PartialEq for TextShaping
impl PartialEq for TextShaping
Source§fn eq(&self, other: &TextShaping) -> bool
fn eq(&self, other: &TextShaping) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TextShaping
Auto Trait Implementations§
impl Freeze for TextShaping
impl RefUnwindSafe for TextShaping
impl Send for TextShaping
impl Sync for TextShaping
impl Unpin for TextShaping
impl UnsafeUnpin for TextShaping
impl UnwindSafe for TextShaping
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.