Struct freya_hooks::EditableConfig
source · pub struct EditableConfig { /* private fields */ }
Expand description
Create a configuration for a UseEditable
.
Implementations§
source§impl EditableConfig
impl EditableConfig
sourcepub fn new(content: String) -> Self
pub fn new(content: String) -> Self
Create a EditableConfig
.
sourcepub fn with_cursor(self, (row, col): (usize, usize)) -> Self
pub fn with_cursor(self, (row, col): (usize, usize)) -> Self
Specify a custom initial cursor positions.
Auto Trait Implementations§
impl RefUnwindSafe for EditableConfig
impl Send for EditableConfig
impl Sync for EditableConfig
impl Unpin for EditableConfig
impl UnwindSafe for EditableConfig
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