pub struct TextEndOfLine { /* private fields */ }Expand description
A text run that supports end of line.
Implementations§
Source§impl TextEndOfLine
impl TextEndOfLine
Sourcepub fn with_length(text_source_length: i32) -> Self
pub fn with_length(text_source_length: i32) -> Self
An end of line covering text_source_length text source positions.
Trait Implementations§
Source§impl Default for TextEndOfLine
impl Default for TextEndOfLine
Source§impl TextRun for TextEndOfLine
impl TextRun for TextEndOfLine
Source§fn as_text_end_of_line(&self) -> Option<&TextEndOfLine>
fn as_text_end_of_line(&self) -> Option<&TextEndOfLine>
The run as an end of line marker (C#
run is TextEndOfLine).Source§fn into_any_rc(self: Rc<Self>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<Self>) -> Rc<dyn Any>
The run handle as
Any, for downcasting to a concrete run handle.Source§fn text(&self) -> ReadOnlyMemory<u16>
fn text(&self) -> ReadOnlyMemory<u16>
Gets the text run’s text.
Source§fn text_span(&self) -> &[u16]
fn text_span(&self) -> &[u16]
Gets the text run’s text as a slice. Runs with text override this
together with
TextRun::text; hot paths read the slice.Source§fn properties(&self) -> Option<&Rc<dyn TextRunProperties>>
fn properties(&self) -> Option<&Rc<dyn TextRunProperties>>
A set of properties shared by every character in the run.
Source§fn as_drawable(&self) -> Option<&dyn DrawableTextRun>
fn as_drawable(&self) -> Option<&dyn DrawableTextRun>
The run as a drawable run (C#
run is DrawableTextRun).Auto Trait Implementations§
impl Freeze for TextEndOfLine
impl RefUnwindSafe for TextEndOfLine
impl Send for TextEndOfLine
impl Sync for TextEndOfLine
impl Unpin for TextEndOfLine
impl UnsafeUnpin for TextEndOfLine
impl UnwindSafe for TextEndOfLine
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