pub enum ClusterLevel {
MonotoneGraphemes,
MonotoneCharacters,
Characters,
Graphemes,
}Expand description
How input text clusters are assigned to output glyphs.
Cluster values relate glyphs to positions in the input. Monotone levels preserve cluster order, which is useful for finding line break positions.
Variants§
MonotoneGraphemes
Keep grapheme clusters together and preserve cluster order.
MonotoneCharacters
Preserve cluster order, allowing characters to keep separate clusters.
Characters
Allow separate character clusters without preserving cluster order.
Graphemes
Keep grapheme clusters together without preserving cluster order.
Implementations§
Source§impl ClusterLevel
impl ClusterLevel
pub(crate) fn new(level: u32) -> Self
pub(crate) fn is_monotone(self) -> bool
pub(crate) fn is_graphemes(self) -> bool
pub(crate) fn _is_characters(self) -> bool
Trait Implementations§
Source§impl Clone for ClusterLevel
impl Clone for ClusterLevel
Source§fn clone(&self) -> ClusterLevel
fn clone(&self) -> ClusterLevel
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 ClusterLevel
Source§impl Debug for ClusterLevel
impl Debug for ClusterLevel
Source§impl Default for ClusterLevel
impl Default for ClusterLevel
impl Eq for ClusterLevel
Source§impl Hash for ClusterLevel
impl Hash for ClusterLevel
Source§impl PartialEq for ClusterLevel
impl PartialEq for ClusterLevel
impl StructuralPartialEq for ClusterLevel
Auto Trait Implementations§
impl Freeze for ClusterLevel
impl RefUnwindSafe for ClusterLevel
impl Send for ClusterLevel
impl Sync for ClusterLevel
impl Unpin for ClusterLevel
impl UnsafeUnpin for ClusterLevel
impl UnwindSafe for ClusterLevel
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