pub struct AmbiguousPrefix {
pub prefix: String,
pub candidates: Vec<String>,
}Expand description
Error returned when a prefix matches multiple distinct commands.
For example, if :s could match both :set and :split, the user
must type more characters to disambiguate.
Fields§
§prefix: StringThe prefix that was searched for.
candidates: Vec<String>The candidate command names that matched.
Trait Implementations§
Source§impl Clone for AmbiguousPrefix
impl Clone for AmbiguousPrefix
Source§fn clone(&self) -> AmbiguousPrefix
fn clone(&self) -> AmbiguousPrefix
Returns a duplicate 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 Debug for AmbiguousPrefix
impl Debug for AmbiguousPrefix
Source§impl Display for AmbiguousPrefix
impl Display for AmbiguousPrefix
Source§impl Error for AmbiguousPrefix
impl Error for AmbiguousPrefix
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for AmbiguousPrefix
impl RefUnwindSafe for AmbiguousPrefix
impl Send for AmbiguousPrefix
impl Sync for AmbiguousPrefix
impl Unpin for AmbiguousPrefix
impl UnsafeUnpin for AmbiguousPrefix
impl UnwindSafe for AmbiguousPrefix
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