Struct cosmic_text::AttrsList
source · [−]pub struct AttrsList<'a> { /* private fields */ }Implementations
sourceimpl<'a> AttrsList<'a>
impl<'a> AttrsList<'a>
pub fn new(defaults: Attrs<'a>) -> Self
pub fn defaults(&self) -> Attrs<'a>
pub fn spans(&self) -> &Vec<(usize, usize, Attrs<'a>)>
pub fn clear_spans(&mut self)
pub fn add_span(&mut self, start: usize, end: usize, attrs: Attrs<'a>)
pub fn get_span(&self, start: usize, end: usize) -> Attrs<'a>
Trait Implementations
sourceimpl<'a> PartialEq<AttrsList<'a>> for AttrsList<'a>
impl<'a> PartialEq<AttrsList<'a>> for AttrsList<'a>
impl<'a> Eq for AttrsList<'a>
impl<'a> StructuralEq for AttrsList<'a>
impl<'a> StructuralPartialEq for AttrsList<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for AttrsList<'a>
impl<'a> Send for AttrsList<'a>
impl<'a> Sync for AttrsList<'a>
impl<'a> Unpin for AttrsList<'a>
impl<'a> UnwindSafe for AttrsList<'a>
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