pub(crate) struct ArgumentData<S, A> {
pub(super) argument_type: A,
pub(super) custom_suggestions: Option<Arc<dyn SuggestionProvider<S, A>>>,
}Fields§
§argument_type: A§custom_suggestions: Option<Arc<dyn SuggestionProvider<S, A>>>Implementations§
Source§impl<S, A> ArgumentData<S, A>
impl<S, A> ArgumentData<S, A>
pub(crate) const fn new(argument_type: A) -> Self
pub(crate) const fn argument_type(&self) -> &A
Source§impl<S, A> ArgumentData<S, A>
impl<S, A> ArgumentData<S, A>
pub(crate) fn list_suggestions(
&self,
context: &ArgumentSuggestionContext<'_, S, <A as CommandArgumentParser<S>>::Value>,
builder: &mut SuggestionsBuilder<'_>,
)where
A: CommandArgumentParser<S>,
pub(crate) fn has_custom_suggestions(&self) -> bool
Trait Implementations§
Source§impl<S, A> Clone for ArgumentData<S, A>where
A: Clone + CommandArgumentParser<S>,
impl<S, A> Clone for ArgumentData<S, A>where
A: Clone + CommandArgumentParser<S>,
Auto Trait Implementations§
impl<S, A> !RefUnwindSafe for ArgumentData<S, A>
impl<S, A> !UnwindSafe for ArgumentData<S, A>
impl<S, A> Freeze for ArgumentData<S, A>where
A: Freeze,
impl<S, A> Send for ArgumentData<S, A>where
A: Send,
impl<S, A> Sync for ArgumentData<S, A>where
A: Sync,
impl<S, A> Unpin for ArgumentData<S, A>where
A: Unpin,
impl<S, A> UnsafeUnpin for ArgumentData<S, A>where
A: UnsafeUnpin,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 moreWraps this value in an
Arc<SyncMutex<>>