Struct cosmic_text::TextBufferLine
source · [−]pub struct TextBufferLine<'a> {
pub text: String,
pub attrs_list: AttrsList<'a>,
/* private fields */
}Fields
text: Stringattrs_list: AttrsList<'a>Implementations
sourceimpl<'a> TextBufferLine<'a>
impl<'a> TextBufferLine<'a>
pub fn new(text: String, attrs: Attrs<'a>) -> Self
pub fn text(&self) -> &str
pub fn reset(&mut self)
pub fn shape(&mut self, font_system: &'a FontSystem<'a>) -> &ShapeLine
pub fn layout(
&mut self,
font_system: &'a FontSystem<'a>,
font_size: i32,
width: i32
) -> &[LayoutLine]
Auto Trait Implementations
impl<'a> RefUnwindSafe for TextBufferLine<'a>
impl<'a> Send for TextBufferLine<'a>
impl<'a> Sync for TextBufferLine<'a>
impl<'a> Unpin for TextBufferLine<'a>
impl<'a> UnwindSafe for TextBufferLine<'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