Struct pepper::buffer::BufferContent[][src]

pub struct BufferContent { /* fields omitted */ }

Implementations

impl BufferContent[src]

pub fn empty() -> &'static Self[src]

pub fn new() -> Self[src]

pub fn line_count(&self) -> usize[src]

pub fn lines(
    &self
) -> impl ExactSizeIterator<Item = &BufferLine> + DoubleEndedIterator<Item = &BufferLine>
[src]

pub fn line_at(&self, index: usize) -> &BufferLine[src]

pub fn end(&self) -> BufferPosition[src]

pub fn read<R>(&mut self, read: &mut R) -> Result<()> where
    R: BufRead
[src]

pub fn write<W>(&self, write: &mut W) -> Result<()> where
    W: Write
[src]

pub fn saturate_position(&self, position: BufferPosition) -> BufferPosition[src]

pub fn append_range_text_to_string(&self, range: BufferRange, text: &mut String)[src]

pub fn find_search_ranges(&self, pattern: &str, ranges: &mut Vec<BufferRange>)[src]

pub fn insert_text(
    &mut self,
    position: BufferPosition,
    text: &str
) -> BufferRange
[src]

pub fn delete_range(&mut self, range: BufferRange)[src]

pub fn clear(&mut self)[src]

pub fn words_from<'a>(
    &'a self,
    position: BufferPosition
) -> (WordRefWithPosition<'a>, impl Iterator<Item = WordRefWithPosition<'a>>, impl Iterator<Item = WordRefWithPosition<'a>>)
[src]

pub fn word_at(&self, position: BufferPosition) -> WordRefWithPosition<'_>[src]

pub fn position_before(&self, position: BufferPosition) -> BufferPosition[src]

pub fn find_delimiter_pair_at(
    &self,
    position: BufferPosition,
    delimiter: char
) -> Option<BufferRange>
[src]

pub fn find_balanced_chars_at(
    &self,
    position: BufferPosition,
    left: char,
    right: char
) -> Option<BufferRange>
[src]

Trait Implementations

impl Display for BufferContent[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

pub default fn to_string(&self) -> String[src]

Converts the given value to a String. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.