pub struct TableUtils;Expand description
Shared table detection utilities
Implementations§
Source§impl TableUtils
impl TableUtils
Sourcepub fn is_potential_table_row(line: &str) -> bool
pub fn is_potential_table_row(line: &str) -> bool
Check if a line looks like a potential table row
Sourcepub fn is_delimiter_row(line: &str) -> bool
pub fn is_delimiter_row(line: &str) -> bool
Check if a line is a table delimiter row (e.g., |—|—|)
Sourcepub fn find_table_blocks(
content: &str,
ctx: &LintContext<'_>,
) -> Vec<TableBlock>
pub fn find_table_blocks( content: &str, ctx: &LintContext<'_>, ) -> Vec<TableBlock>
Find all table blocks in the content with optimized detection
Sourcepub fn count_cells(row: &str) -> usize
pub fn count_cells(row: &str) -> usize
Count the number of cells in a table row
Sourcepub fn determine_pipe_style(line: &str) -> Option<&'static str>
pub fn determine_pipe_style(line: &str) -> Option<&'static str>
Determine the pipe style of a table row
Auto Trait Implementations§
impl Freeze for TableUtils
impl RefUnwindSafe for TableUtils
impl Send for TableUtils
impl Sync for TableUtils
impl Unpin for TableUtils
impl UnwindSafe for TableUtils
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> 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