pub struct Window { /* private fields */ }
Implementations§
Source§impl Window
impl Window
pub fn new() -> Self
pub fn open(filename: &str) -> Self
pub fn empty(&self) -> bool
pub fn size(&self) -> usize
pub fn narrowed(&self) -> bool
pub fn save_as(&self, filename: &str)
pub fn set_mark(&self)
pub fn get_mark(&self) -> Option<i64>
pub fn get_contents(&self) -> Text
pub fn find(&self, text: &str) -> Option<i64>
pub fn rfind(&self, text: &str) -> Option<i64>
pub fn replace(&self, from: &str, to: &str, n: usize) -> i32
pub fn copy(&self) -> Text
pub fn cut(&self) -> Text
pub fn paste<T: Into<Text>>(&self, text: T)
pub fn erase_region(&self)
pub fn clear(&self)
pub fn get_pos(&self) -> usize
pub fn goto_pos(&self, pos: i64) -> bool
pub fn del_backward(&self, n: usize) -> usize
pub fn del_forward(&self, n: usize) -> usize
pub fn backward(&self, n: usize) -> usize
pub fn forward(&self, n: usize) -> usize
pub fn prev_line(&self, n: usize) -> usize
pub fn next_line(&self, n: usize) -> usize
pub fn start_of_buffer(&self)
pub fn end_of_buffer(&self)
pub fn start_of_line(&self)
pub fn end_of_line(&self)
pub fn start_of_block(&self) -> bool
pub fn end_of_block(&self) -> bool
pub fn narrow_to_block(&self) -> bool
pub fn narrow_to_region(&self) -> bool
pub fn widen(&self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Window
impl !RefUnwindSafe for Window
impl !Send for Window
impl !Sync for Window
impl Unpin for Window
impl !UnwindSafe for Window
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more