pub struct Line { /* private fields */ }Implementations§
source§impl Line
impl Line
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn cells(&self) -> impl Iterator<Item = (char, Pen)> + '_
pub fn segments(&self) -> impl Iterator<Item = Segment> + '_
pub fn group<'a>( &'a self, predicate: impl Fn(&char, usize) -> bool + 'a ) -> impl Iterator<Item = Segment> + '_
pub fn chars(&self) -> impl Iterator<Item = char> + '_
pub fn text(&self) -> String
Trait Implementations§
source§impl PartialEq for Line
impl PartialEq for Line
impl StructuralPartialEq for Line
Auto Trait Implementations§
impl Freeze for Line
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnwindSafe for Line
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