pub struct CandidateAnswer {
pub candidates: Vec<(String, String)>,
pub files: bool,
}Expand description
The reference implementation’s completion candidates, readable as data.
Re-exported rather than the whole cli module: the conformance comparison needs this one
answer, and nothing else in here is a promise to anybody.
The reference implementation’s candidates and whether they came from its path fallback.
candidates keeps returning the concrete paths the CLI has always printed. Conformance
needs the extra bit because a portable corpus can say “files belong here” but cannot pin
whichever files happen to be in the checkout running it.
Fields§
§candidates: Vec<(String, String)>The concrete values the CLI would print for the shell.
files: boolWhether the CLI generated those values by scanning the filesystem.
Trait Implementations§
Source§impl Debug for CandidateAnswer
impl Debug for CandidateAnswer
impl Eq for CandidateAnswer
Source§impl PartialEq for CandidateAnswer
impl PartialEq for CandidateAnswer
impl StructuralPartialEq for CandidateAnswer
Auto Trait Implementations§
impl Freeze for CandidateAnswer
impl RefUnwindSafe for CandidateAnswer
impl Send for CandidateAnswer
impl Sync for CandidateAnswer
impl Unpin for CandidateAnswer
impl UnsafeUnpin for CandidateAnswer
impl UnwindSafe for CandidateAnswer
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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