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
sourceimpl Autocomplete for NoAutoCompletion
impl Autocomplete for NoAutoCompletion
sourcefn 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
sourcefn 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
sourceimpl Clone for NoAutoCompletion
impl Clone for NoAutoCompletion
sourcefn clone(&self) -> NoAutoCompletion
fn clone(&self) -> NoAutoCompletion
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Default for NoAutoCompletion
impl Default for NoAutoCompletion
sourcefn default() -> NoAutoCompletion
fn default() -> NoAutoCompletion
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for NoAutoCompletion
impl Send for NoAutoCompletion
impl Sync for NoAutoCompletion
impl Unpin for NoAutoCompletion
impl UnwindSafe for NoAutoCompletion
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more