FormattedTextSource
struct · ferroui-base · v0.5.0
struct FormattedTextSource
The text source of a formatted text: one string with default properties and optional property overrides for ranges of it.
Members
new
fn new(text: ReadOnlyMemory<u16>, default_properties: Rc<dyn TextRunProperties>, text_modifier: Option<Rc<[ValueSpan<Rc<dyn TextRunProperties>>]>>) -> Self
create_text_style_run
fn create_text_style_run(text: &[u16], first_text_source_index: i32, default_properties: &Rc<dyn TextRunProperties>, text_modifier: Option<&[ValueSpan<Rc<dyn TextRunProperties>>]>) -> ValueSpan<Rc<dyn TextRunProperties>>
Creates a span of text run properties that has modifier applied.
text— the text to create the properties for.first_text_source_index— the first text source index.default_properties— the default text properties.text_modifier— the text properties modifier.
Returns the created text style run.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneITextSource
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.