pub struct TextOptions {Show 24 fields
pub x_tolerance: f64,
pub y_tolerance: f64,
pub x_tolerance_ratio: Option<f64>,
pub y_tolerance_ratio: Option<f64>,
pub layout: bool,
pub layout_width: Option<f64>,
pub layout_height: Option<f64>,
pub layout_width_chars: Option<usize>,
pub layout_height_chars: Option<usize>,
pub layout_bbox: Option<BBox>,
pub x_density: f64,
pub y_density: f64,
pub x_shift: f64,
pub y_shift: f64,
pub line_dir: Direction,
pub char_dir: Direction,
pub line_dir_rotated: Option<Direction>,
pub char_dir_rotated: Option<Direction>,
pub line_dir_render: Option<Direction>,
pub char_dir_render: Option<Direction>,
pub keep_blank_chars: bool,
pub use_text_flow: bool,
pub split_at_punctuation: Option<String>,
pub expand_ligatures: bool,
}Fields§
§x_tolerance: f64§y_tolerance: f64§x_tolerance_ratio: Option<f64>§y_tolerance_ratio: Option<f64>§layout: bool§layout_width: Option<f64>§layout_height: Option<f64>§layout_width_chars: Option<usize>§layout_height_chars: Option<usize>§layout_bbox: Option<BBox>§x_density: f64§y_density: f64§x_shift: f64§y_shift: f64§line_dir: Direction§char_dir: Direction§line_dir_rotated: Option<Direction>§char_dir_rotated: Option<Direction>§line_dir_render: Option<Direction>§char_dir_render: Option<Direction>§keep_blank_chars: bool§use_text_flow: bool§split_at_punctuation: Option<String>§expand_ligatures: boolImplementations§
Source§impl TextOptions
impl TextOptions
pub fn resolved_line_dir_rotated(&self) -> Direction
pub fn resolved_char_dir_rotated(&self) -> Direction
pub fn resolved_line_dir_render(&self) -> Direction
pub fn resolved_char_dir_render(&self) -> Direction
Trait Implementations§
Source§impl Clone for TextOptions
impl Clone for TextOptions
Source§fn clone(&self) -> TextOptions
fn clone(&self) -> TextOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 TextOptions
impl Debug for TextOptions
Auto Trait Implementations§
impl Freeze for TextOptions
impl RefUnwindSafe for TextOptions
impl Send for TextOptions
impl Sync for TextOptions
impl Unpin for TextOptions
impl UnsafeUnpin for TextOptions
impl UnwindSafe for TextOptions
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.