struct StyleAttr<'c> {
italic: bool,
bold: bool,
foreground: Option<&'c Color>,
background: Option<&'c Color>,
empty: bool,
space: bool,
start_idx: usize,
end_idx: usize,
}
Fields§
§italic: bool
§bold: bool
§foreground: Option<&'c Color>
§background: Option<&'c Color>
§empty: bool
§space: bool
§start_idx: usize
§end_idx: usize
Implementations§
Source§impl<'c> StyleAttr<'c>
impl<'c> StyleAttr<'c>
fn new() -> Self
fn from( start_idx: usize, end_idx: usize, cell: &'c Cell, hl: &'c HighlightMap, ) -> Self
fn next( &mut self, start_idx: usize, end_idx: usize, cell: &'c Cell, hl: &'c HighlightMap, ) -> Option<StyleAttr<'c>>
fn insert_into(&self, attr_list: &AttrList)
fn insert_attr(&self, attr_list: &AttrList, attr: Attribute)
Trait Implementations§
Auto Trait Implementations§
impl<'c> Freeze for StyleAttr<'c>
impl<'c> RefUnwindSafe for StyleAttr<'c>
impl<'c> Send for StyleAttr<'c>
impl<'c> Sync for StyleAttr<'c>
impl<'c> Unpin for StyleAttr<'c>
impl<'c> UnwindSafe for StyleAttr<'c>
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