pub struct TextLine {
pub content: TextContent,
pub location: Range,
}Expand description
A text line within a paragraph
Fields§
§content: TextContent§location: RangeImplementations§
Trait Implementations§
Source§impl VisualStructure for TextLine
impl VisualStructure for TextLine
Source§fn is_source_line_node(&self) -> bool
fn is_source_line_node(&self) -> bool
Whether this node corresponds to a line in the source document Read more
Source§fn has_visual_header(&self) -> bool
fn has_visual_header(&self) -> bool
Whether this node has a visual header line separate from its content Read more
Source§fn collapses_with_children(&self) -> bool
fn collapses_with_children(&self) -> bool
Whether this is a homogeneous container whose children can collapse with parent icon Read more
impl StructuralPartialEq for TextLine
Auto Trait Implementations§
impl Freeze for TextLine
impl RefUnwindSafe for TextLine
impl Send for TextLine
impl Sync for TextLine
impl Unpin for TextLine
impl UnsafeUnpin for TextLine
impl UnwindSafe for TextLine
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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