Struct inquire::autocompletion::NoAutoCompletion
source · pub struct NoAutoCompletion;
Expand description
Empty struct and implementation of Autocomplete trait. Used for the default
autocompleter of Text
prompts.
Trait Implementations§
source§impl Autocomplete for NoAutoCompletion
impl Autocomplete for NoAutoCompletion
source§fn get_suggestions(&mut self, _: &str) -> Result<Vec<String>, CustomUserError>
fn get_suggestions(&mut self, _: &str) -> Result<Vec<String>, CustomUserError>
List of input suggestions to be displayed to the user upon typing the
text input. Read more
source§fn get_completion(
&mut self,
_: &str,
_: Option<String>
) -> Result<Replacement, CustomUserError>
fn get_completion( &mut self, _: &str, _: Option<String> ) -> Result<Replacement, CustomUserError>
Standalone autocompletion that can be implemented based solely on the user’s
input. Read more
source§impl Clone for NoAutoCompletion
impl Clone for NoAutoCompletion
source§fn clone(&self) -> NoAutoCompletion
fn clone(&self) -> NoAutoCompletion
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for NoAutoCompletion
impl Default for NoAutoCompletion
source§fn default() -> NoAutoCompletion
fn default() -> NoAutoCompletion
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NoAutoCompletion
impl RefUnwindSafe for NoAutoCompletion
impl Send for NoAutoCompletion
impl Sync for NoAutoCompletion
impl Unpin for NoAutoCompletion
impl UnwindSafe for NoAutoCompletion
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