pub struct StyledRun {
pub text: String,
pub style: Arc<StyleProperties>,
pub logical_start_byte: usize,
pub source_node_id: Option<NodeId>,
}Fields§
§text: String§style: Arc<StyleProperties>§logical_start_byte: usizeByte index in the original logical paragraph text
source_node_id: Option<NodeId>The DOM NodeId of the Text node this run came from. None for generated content (e.g., list markers, ::before/::after).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StyledRun
impl RefUnwindSafe for StyledRun
impl Send for StyledRun
impl Sync for StyledRun
impl Unpin for StyledRun
impl UnwindSafe for StyledRun
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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