pub struct Completions {
pub insertion_index: usize,
pub delete_count: usize,
pub candidates: IndexSet<String>,
pub options: ProcessingOptions,
}Expand description
Represents a set of generated command completions.
Fields§
§insertion_index: usizeThe index in the input line where the completions should be inserted. Represented as a byte offset into the input line; must be at a clean character boundary.
delete_count: usizeThe number of elements in the input line that should be removed before insertion. Represented as a byte count; must capture an exact character boundary.
candidates: IndexSet<String>The ordered set of completions.
options: ProcessingOptionsOptions for processing the candidates.
Trait Implementations§
Source§impl Debug for Completions
impl Debug for Completions
Source§impl Default for Completions
impl Default for Completions
Source§fn default() -> Completions
fn default() -> Completions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Completions
impl RefUnwindSafe for Completions
impl Send for Completions
impl Sync for Completions
impl Unpin for Completions
impl UnwindSafe for Completions
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more