Struct pepper::buffer::BufferLine
source · [−]pub struct BufferLine(_);
Implementations
sourceimpl BufferLine
impl BufferLine
pub fn as_str(&self) -> &str
pub fn chars_from(
&self,
index: usize
) -> (impl '_ + Iterator<Item = (usize, char)>, impl '_ + Iterator<Item = (usize, char)>)
pub fn words_from(
&self,
index: usize
) -> (WordRefWithIndex<'_>, impl Iterator<Item = WordRefWithIndex<'_>>, impl Iterator<Item = WordRefWithIndex<'_>>)
pub fn word_at(&self, index: usize) -> WordRefWithIndex<'_>
pub fn split_off(
&mut self,
self_display_len: &mut DisplayLen,
other: &mut BufferLine,
other_display_len: &mut DisplayLen,
index: usize
)
pub fn insert_text(
&mut self,
display_len: &mut DisplayLen,
index: usize,
text: &str
)
pub fn push_text(&mut self, display_len: &mut DisplayLen, text: &str)
pub fn delete_range<R>(&mut self, display_len: &mut DisplayLen, range: R) where
R: RangeBounds<usize>,
Auto Trait Implementations
impl RefUnwindSafe for BufferLine
impl Send for BufferLine
impl Sync for BufferLine
impl Unpin for BufferLine
impl UnwindSafe for BufferLine
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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