pub struct MarkdownLayout { /* private fields */ }Implementations§
Source§impl MarkdownLayout
impl MarkdownLayout
pub fn row_count(&self) -> usize
pub fn row(&self, index: usize) -> Option<&Arc<MarkdownRow>>
pub const fn rows(&self) -> &MarkdownRows
pub fn rows_for_source_line(&self, line: usize) -> Option<Range<usize>>
pub fn rows_for_target(&self, target: MarkdownTargetId) -> Option<Range<usize>>
pub fn materialize(&self) -> Arc<[Line<'static>]> ⓘ
Trait Implementations§
Source§impl Clone for MarkdownLayout
impl Clone for MarkdownLayout
Source§fn clone(&self) -> MarkdownLayout
fn clone(&self) -> MarkdownLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MarkdownLayout
impl Debug for MarkdownLayout
Source§impl Default for MarkdownLayout
impl Default for MarkdownLayout
Source§fn default() -> MarkdownLayout
fn default() -> MarkdownLayout
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MarkdownLayout
impl RefUnwindSafe for MarkdownLayout
impl Send for MarkdownLayout
impl Sync for MarkdownLayout
impl Unpin for MarkdownLayout
impl UnsafeUnpin for MarkdownLayout
impl UnwindSafe for MarkdownLayout
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