pub struct ResolvedRules<'a> { /* private fields */ }Expand description
StyleRules resolved against one table, from
StyleRules::resolve.
Implementations§
Source§impl ResolvedRules<'_>
impl ResolvedRules<'_>
Sourcepub fn row_style(&self, row: &[Value]) -> Option<Style>
pub fn row_style(&self, row: &[Value]) -> Option<Style>
The style for the whole of row: its row rules that match, combined.
Sourcepub fn cell_style(&self, row: &[Value], column: usize) -> Option<Style>
pub fn cell_style(&self, row: &[Value], column: usize) -> Option<Style>
The style for row’s cell in column: the column’s style from
column rules, then its cell rules that match, combined.
Sourcepub fn column_style(&self, column: usize) -> Option<&Style>
pub fn column_style(&self, column: usize) -> Option<&Style>
The style column rules give column, if any matched.
Sourcepub fn unresolved(&self) -> Vec<&StyleRule>
pub fn unresolved(&self) -> Vec<&StyleRule>
The rules whose column is not in the table (a header that is not there, an index past the end). They never match.
Trait Implementations§
Source§impl<'a> Clone for ResolvedRules<'a>
impl<'a> Clone for ResolvedRules<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ResolvedRules<'a>
impl<'a> !UnwindSafe for ResolvedRules<'a>
impl<'a> Freeze for ResolvedRules<'a>
impl<'a> Send for ResolvedRules<'a>
impl<'a> Sync for ResolvedRules<'a>
impl<'a> Unpin for ResolvedRules<'a>
impl<'a> UnsafeUnpin for ResolvedRules<'a>
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