pub struct Session { /* private fields */ }Implementations§
Source§impl Session
impl Session
pub fn new(document: Document) -> Self
pub fn id(&self) -> SessionId
pub fn settings(&self) -> &Rc<Settings>
pub fn document(&self) -> &Document
pub fn layout(&self) -> Layout<'_>
pub fn wrap_column(&self) -> Option<usize>
pub fn selections(&self) -> Ref<'_, [Selection]>
pub fn last_added_selection_index(&self) -> Option<usize>
pub fn highlighted_delimiter_positions(&self) -> Ref<'_, HashSet<Position>>
pub fn set_wrap_column(&mut self, wrap_column: Option<usize>)
pub fn fold(&mut self)
pub fn unfold(&mut self)
pub fn update_folds(&mut self) -> bool
pub fn set_selection( &mut self, position: Position, affinity: Affinity, tap_count: u32, )
pub fn add_selection( &mut self, position: Position, affinity: Affinity, _tap_count: u32, )
pub fn move_to(&mut self, position: Position, affinity: Affinity)
pub fn move_left(&mut self, reset_anchor: bool)
pub fn move_right(&mut self, reset_anchor: bool)
pub fn move_up(&mut self, reset_anchor: bool)
pub fn move_down(&mut self, reset_anchor: bool)
pub fn insert(&mut self, text: Text)
pub fn enter(&mut self)
pub fn delete(&mut self)
pub fn backspace(&mut self)
pub fn indent(&mut self)
pub fn outdent(&mut self)
pub fn copy(&self) -> String
pub fn undo(&mut self) -> bool
pub fn redo(&mut self) -> bool
pub fn handle_changes(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Session
impl !RefUnwindSafe for Session
impl !Send for Session
impl !Sync for Session
impl Unpin for Session
impl !UnwindSafe for Session
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