Trait vizia::vg::EncodedText
pub trait EncodedText {
// Required method
fn as_raw(&self) -> (*const c_void, usize, TextEncoding);
}
Expand description
Trait representing encoded text.
Functions that expect EncodedText
may be passed String
, &String``,
&strrepresenting UTF-8 encoded text. In addition to that, &[u16], [u16], or &[GlyphId], [GlyphId], are interpreted as
GlyphId` slices.
To use UTF16 or UTF32 encodings, use as_utf16_unchecked
or
as_utf32_unchecked
.