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: boolbold: boolforeground: Option<&'c Color>background: Option<&'c Color>empty: boolspace: boolstart_idx: usizeend_idx: usizeImplementations
sourceimpl<'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> 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more