Enum text_document::font::SpacingType
source · [−]pub enum SpacingType {
PercentageSpacing,
AbsoluteSpacing,
}Expand description
Spacing between letters
Variants
PercentageSpacing
A value of 100 will keep the spacing unchanged; a value of 200 will enlarge the spacing after a character by the width of the character itself.
AbsoluteSpacing
A positive value increases the letter spacing by the corresponding pixels; a negative value decreases the spacing.
Trait Implementations
sourceimpl Clone for SpacingType
impl Clone for SpacingType
sourcefn clone(&self) -> SpacingType
fn clone(&self) -> SpacingType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for SpacingType
impl Debug for SpacingType
sourceimpl Default for SpacingType
impl Default for SpacingType
sourceimpl PartialEq<SpacingType> for SpacingType
impl PartialEq<SpacingType> for SpacingType
sourceimpl PartialOrd<SpacingType> for SpacingType
impl PartialOrd<SpacingType> for SpacingType
sourcefn partial_cmp(&self, other: &SpacingType) -> Option<Ordering>
fn partial_cmp(&self, other: &SpacingType) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Copy for SpacingType
impl StructuralPartialEq for SpacingType
Auto Trait Implementations
impl RefUnwindSafe for SpacingType
impl Send for SpacingType
impl Sync for SpacingType
impl Unpin for SpacingType
impl UnwindSafe for SpacingType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more