Struct liner::Buffer [] [src]

pub struct Buffer { /* fields omitted */ }

A buffer for text in the line editor.

It keeps track of each action performed on it for use with undo/redo.

Methods

impl Buffer
[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Returns the number of characters removed.

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Takes other buffer, measures its length and prints this buffer from the point where the other stopped. Used to implement autosuggestions.

[src]

Check if the other buffer starts with the same content as this one. Used to implement autosuggestions.

[src]

Return true if the buffer is empty.

Trait Implementations

impl Debug for Buffer
[src]

[src]

Formats the value using the given formatter.

impl Clone for Buffer
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl From<String> for Buffer
[src]

[src]

Performs the conversion.

impl<'a> From<&'a str> for Buffer
[src]

[src]

Performs the conversion.

impl Display for Buffer
[src]

[src]

Formats the value using the given formatter. Read more

impl FromIterator<char> for Buffer
[src]

[src]

Creates a value from an iterator. Read more