Struct swash::text::cluster::CharCluster [−][src]
pub struct CharCluster { /* fields omitted */ }
Character cluster; output from the parser and input to the shaper.
Implementations
impl CharCluster
[src]
impl CharCluster
[src]pub fn new() -> Self
[src]
Creates a new empty cluster.
pub fn info(&self) -> ClusterInfo
[src]
Returns the cluster information.
pub fn user_data(&self) -> UserData
[src]
Returns the primary user data for the cluster.
pub fn range(&self) -> SourceRange
[src]
Returns the source range for the cluster in code units.
pub fn is_empty(&self) -> bool
[src]
Returns true if the cluster is empty.
pub fn chars(&self) -> &[Char]ⓘ
[src]
Returns the sequence of characters in the cluster.
pub fn mapped_chars(&self) -> &[Char]ⓘ
[src]
Returns the currently mapped sequence of characters in the cluster.
pub fn map(&mut self, f: impl Fn(char) -> GlyphId) -> Status
[src]
Applies a nominal glyph identifier mapping to the cluster, returning a result indicating the status of the mapping.
pub fn clear(&mut self)
[src]
Resets the cluster to the intial empty state.
Trait Implementations
impl Clone for CharCluster
[src]
impl Clone for CharCluster
[src]fn clone(&self) -> CharCluster
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for CharCluster
[src]
impl Copy for CharCluster
[src]Auto Trait Implementations
impl RefUnwindSafe for CharCluster
impl RefUnwindSafe for CharCluster
impl Send for CharCluster
impl Send for CharCluster
impl Sync for CharCluster
impl Sync for CharCluster
impl Unpin for CharCluster
impl Unpin for CharCluster
impl UnwindSafe for CharCluster
impl UnwindSafe for CharCluster