Struct swash::text::cluster::CharCluster
source · pub struct CharCluster { /* private fields */ }
Expand description
Character cluster; output from the parser and input to the shaper.
Implementations§
source§impl CharCluster
impl CharCluster
sourcepub fn info(&self) -> ClusterInfo
pub fn info(&self) -> ClusterInfo
Returns the cluster information.
sourcepub fn range(&self) -> SourceRange
pub fn range(&self) -> SourceRange
Returns the source range for the cluster in code units.
sourcepub fn mapped_chars(&self) -> &[Char]
pub fn mapped_chars(&self) -> &[Char]
Returns the currently mapped sequence of characters in the cluster.
Trait Implementations§
source§impl Clone for CharCluster
impl Clone for CharCluster
source§fn clone(&self) -> CharCluster
fn clone(&self) -> CharCluster
Returns a copy 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 Default for CharCluster
impl Default for CharCluster
impl Copy for CharCluster
Auto Trait Implementations§
impl Freeze for CharCluster
impl RefUnwindSafe for CharCluster
impl Send for CharCluster
impl Sync for CharCluster
impl Unpin for CharCluster
impl UnwindSafe for CharCluster
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)