pub struct ShapedTextBufferUnsized {
pub infos: Vec<GlyphInfo>,
}
Fields§
§infos: Vec<GlyphInfo>
Implementations§
Source§impl ShapedTextBufferUnsized
impl ShapedTextBufferUnsized
Sourcepub fn get_word_visual_width_unscaled(&self) -> usize
pub fn get_word_visual_width_unscaled(&self) -> usize
Get the word width in unscaled units (respects kerning)
Trait Implementations§
Source§impl Debug for ShapedTextBufferUnsized
impl Debug for ShapedTextBufferUnsized
Source§impl Default for ShapedTextBufferUnsized
impl Default for ShapedTextBufferUnsized
Source§fn default() -> ShapedTextBufferUnsized
fn default() -> ShapedTextBufferUnsized
Returns the “default value” for a type. Read more
Source§impl PartialEq for ShapedTextBufferUnsized
impl PartialEq for ShapedTextBufferUnsized
impl StructuralPartialEq for ShapedTextBufferUnsized
Auto Trait Implementations§
impl Freeze for ShapedTextBufferUnsized
impl RefUnwindSafe for ShapedTextBufferUnsized
impl Send for ShapedTextBufferUnsized
impl Sync for ShapedTextBufferUnsized
impl Unpin for ShapedTextBufferUnsized
impl UnwindSafe for ShapedTextBufferUnsized
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more