Struct pepper::buffer::Buffer[][src]

pub struct Buffer {
    pub path: PathBuf,
    pub capabilities: BufferCapabilities,
    // some fields omitted
}

Fields

path: PathBufcapabilities: BufferCapabilities

Implementations

impl Buffer[src]

pub fn handle(&self) -> BufferHandle[src]

pub fn highlighted(&self) -> &HighlightedBuffer[src]

pub fn update_highlighting(
    &mut self,
    syntaxes: &SyntaxCollection
) -> HighlightResult
[src]

pub fn refresh_syntax(&mut self, syntaxes: &SyntaxCollection)[src]

pub fn content(&self) -> &BufferContent[src]

pub fn needs_save(&self) -> bool[src]

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

pub fn delete_range(
    &mut self,
    word_database: &mut WordDatabase,
    range: BufferRange,
    events: &mut EditorEventQueue
)
[src]

pub fn commit_edits(&mut self)[src]

pub fn undo<'a>(
    &'a mut self,
    word_database: &mut WordDatabase,
    events: &mut EditorEventQueue
) -> impl 'a + ExactSizeIterator<Item = Edit<'a>> + DoubleEndedIterator<Item = Edit<'a>>
[src]

pub fn redo<'a>(
    &'a mut self,
    word_database: &mut WordDatabase,
    events: &mut EditorEventQueue
) -> impl 'a + ExactSizeIterator<Item = Edit<'a>> + DoubleEndedIterator<Item = Edit<'a>>
[src]

pub fn search_ranges(&self) -> &[BufferRange][src]

pub fn save_to_file(
    &mut self,
    new_path: Option<&Path>,
    events: &mut EditorEventQueue
) -> Result<(), BufferError>
[src]

pub fn discard_and_reload_from_file(
    &mut self,
    word_database: &mut WordDatabase,
    events: &mut EditorEventQueue
) -> Result<(), BufferError>
[src]

Auto Trait Implementations

impl RefUnwindSafe for Buffer

impl Send for Buffer

impl Sync for Buffer

impl Unpin for Buffer

impl UnwindSafe for Buffer

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, 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.