[][src]Struct teehee::Buffer

pub struct Buffer {
    pub path: Option<PathBuf>,
    pub data: Rope,
    pub selection: Selection,
    pub registers: HashMap<char, Vec<Vec<u8>>>,
    pub dirty: bool,
}

Fields

path: Option<PathBuf>data: Ropeselection: Selectionregisters: HashMap<char, Vec<Vec<u8>>>dirty: bool

Implementations

impl Buffer[src]

pub fn from_data_and_path(
    data: Vec<u8>,
    path: Option<impl Into<PathBuf>>
) -> Buffer
[src]

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

pub fn map_selections(
    &mut self,
    f: impl FnMut(SelRegion) -> Vec<SelRegion>
) -> DirtyBytes
[src]

pub fn apply_delta(&mut self, delta: &Delta<RopeInfo>) -> DirtyBytes[src]

pub fn apply_delta_offset_carets(
    &mut self,
    delta: &Delta<RopeInfo>,
    caret_offset: isize,
    tail_offset: isize
) -> DirtyBytes
[src]

pub fn remove_selection(&mut self, index: usize) -> DirtyBytes[src]

pub fn retain_selection(&mut self, index: usize) -> DirtyBytes[src]

pub fn select_next(&mut self, count: usize) -> DirtyBytes[src]

pub fn select_prev(&mut self, count: usize) -> DirtyBytes[src]

pub fn yank_selections(&mut self, reg: char)[src]

pub fn overflow_sel_style(&self) -> Option<OverflowSelectionStyle>[src]

Trait Implementations

impl Default for Buffer[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]

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

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

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

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

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.

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.