pub struct SimpleTextSource { /* private fields */ }Expand description
A text source of one string with one set of run properties.
Implementations§
Source§impl SimpleTextSource
impl SimpleTextSource
pub fn new( text: ReadOnlyMemory<u16>, default_properties: Rc<dyn TextRunProperties>, ) -> Self
Trait Implementations§
Source§impl Clone for SimpleTextSource
impl Clone for SimpleTextSource
Source§impl ITextSource for SimpleTextSource
impl ITextSource for SimpleTextSource
Auto Trait Implementations§
impl !RefUnwindSafe for SimpleTextSource
impl !Send for SimpleTextSource
impl !Sync for SimpleTextSource
impl !UnwindSafe for SimpleTextSource
impl Freeze for SimpleTextSource
impl Unpin for SimpleTextSource
impl UnsafeUnpin for SimpleTextSource
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more