pub struct EditorOptions {
pub padding_x: usize,
pub autocomplete_max_visible: usize,
pub placeholder: Option<String>,
pub initial_text: Option<String>,
}Expand description
Editor options.
Fields§
§padding_x: usizePadding on left and right.
autocomplete_max_visible: usizeMaximum visible lines for autocomplete.
placeholder: Option<String>Placeholder text when empty.
initial_text: Option<String>Initial text content.
Trait Implementations§
Source§impl Clone for EditorOptions
impl Clone for EditorOptions
Source§impl Debug for EditorOptions
impl Debug for EditorOptions
Auto Trait Implementations§
impl Freeze for EditorOptions
impl RefUnwindSafe for EditorOptions
impl Send for EditorOptions
impl Sync for EditorOptions
impl Unpin for EditorOptions
impl UnsafeUnpin for EditorOptions
impl UnwindSafe for EditorOptions
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