#[non_exhaustive]pub enum FillStrategy {
ControlU,
Backspace(usize),
None,
}Expand description
Clearing strategy used by Locator::fill_with.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ControlU
Send C-u before typing. This matches common readline-like prompts.
Backspace(usize)
Send Backspace n times before typing.
None
Do not attempt to clear existing terminal input before typing.
Trait Implementations§
Source§impl Clone for FillStrategy
impl Clone for FillStrategy
Source§fn clone(&self) -> FillStrategy
fn clone(&self) -> FillStrategy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FillStrategy
Source§impl Debug for FillStrategy
impl Debug for FillStrategy
impl Eq for FillStrategy
Source§impl Hash for FillStrategy
impl Hash for FillStrategy
Source§impl PartialEq for FillStrategy
impl PartialEq for FillStrategy
Source§fn eq(&self, other: &FillStrategy) -> bool
fn eq(&self, other: &FillStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FillStrategy
Auto Trait Implementations§
impl Freeze for FillStrategy
impl RefUnwindSafe for FillStrategy
impl Send for FillStrategy
impl Sync for FillStrategy
impl Unpin for FillStrategy
impl UnsafeUnpin for FillStrategy
impl UnwindSafe for FillStrategy
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