pub enum SpaceCategory {
InterWord,
InterSentence,
InterCharacter,
}Expand description
Classification of horizontal space types.
Different categories have different stretch/shrink tolerances. Inter-sentence space is wider than inter-word (French spacing aside).
Variants§
InterWord
Normal inter-word space.
InterSentence
Space after sentence-ending punctuation (wider in traditional typography, same as inter-word in “French spacing” mode).
InterCharacter
Inter-character spacing (tracking/letter-spacing). Very small adjustments; used sparingly for micro-justification.
Trait Implementations§
Source§impl Clone for SpaceCategory
impl Clone for SpaceCategory
Source§fn clone(&self) -> SpaceCategory
fn clone(&self) -> SpaceCategory
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 SpaceCategory
impl Debug for SpaceCategory
Source§impl Default for SpaceCategory
impl Default for SpaceCategory
Source§fn default() -> SpaceCategory
fn default() -> SpaceCategory
Returns the “default value” for a type. Read more
Source§impl Display for SpaceCategory
impl Display for SpaceCategory
Source§impl Hash for SpaceCategory
impl Hash for SpaceCategory
Source§impl PartialEq for SpaceCategory
impl PartialEq for SpaceCategory
impl Copy for SpaceCategory
impl Eq for SpaceCategory
impl StructuralPartialEq for SpaceCategory
Auto Trait Implementations§
impl Freeze for SpaceCategory
impl RefUnwindSafe for SpaceCategory
impl Send for SpaceCategory
impl Sync for SpaceCategory
impl Unpin for SpaceCategory
impl UnwindSafe for SpaceCategory
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<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.