[−][src]Struct teehee::Buffer
Fields
path: Option<PathBuf>
data: Rope
selection: Selection
registers: 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]
data: Vec<u8>,
path: Option<impl Into<PathBuf>>
) -> Buffer
pub fn name(&self) -> String
[src]
pub fn map_selections(
&mut self,
f: impl FnMut(SelRegion) -> Vec<SelRegion>
) -> DirtyBytes
[src]
&mut self,
f: impl FnMut(SelRegion) -> Vec<SelRegion>
) -> DirtyBytes
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]
&mut self,
delta: &Delta<RopeInfo>,
caret_offset: isize,
tail_offset: isize
) -> DirtyBytes
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,