pub struct TextCluster(_);
Implementations§
§impl TextCluster
impl TextCluster
pub fn new(num_bytes: i32, num_glyphs: i32) -> TextCluster
pub fn num_bytes(&self) -> i32
pub fn num_glyphs(&self) -> i32
pub fn set_num_bytes(&mut self, num_bytes: i32)
pub fn set_num_glyphs(&mut self, num_glyphs: i32)
Trait Implementations§
§impl Clone for TextCluster
impl Clone for TextCluster
§fn clone(&self) -> TextCluster
fn clone(&self) -> TextCluster
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 more§impl Debug for TextCluster
impl Debug for TextCluster
impl Copy for TextCluster
Auto Trait Implementations§
impl RefUnwindSafe for TextCluster
impl Send for TextCluster
impl Sync for TextCluster
impl Unpin for TextCluster
impl UnwindSafe for TextCluster
Blanket Implementations§
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.