Trait perspective_viewer::utils::CaretPosition
source · pub trait CaretPosition {
// Required methods
fn select_all(&self) -> ApiResult<()>;
fn set_caret_position(&self, offset: usize) -> ApiResult<()>;
fn get_caret_position(&self) -> Option<u32>;
}Expand description
Utilities for caret position. DOM elements have different APIs for this
but Deref makes them fall through, so it is important that this method
be called on the correct struct type!