pub struct CommandParserSource<'source> {
inner: &'source dyn CommandArgumentSource,
}Expand description
Read-only source facts available while a custom argument is parsed.
Fields§
§inner: &'source dyn CommandArgumentSourceImplementations§
Source§impl CommandParserSource<'_>
impl CommandParserSource<'_>
Sourcepub fn domain_names(&self) -> Vec<&str>
pub fn domain_names(&self) -> Vec<&str>
Returns configured domain names.
Sourcepub fn world_names(&self) -> Vec<String>
pub fn world_names(&self) -> Vec<String>
Returns world names visible to the current command source.
Sourcepub fn player_names(&self) -> Vec<String>
pub fn player_names(&self) -> Vec<String>
Returns player names visible to selectors in the source domain.
Sourcepub fn permission_group_names(&self) -> Vec<String>
pub fn permission_group_names(&self) -> Vec<String>
Returns configured permission group names.
Trait Implementations§
Source§impl<'source> Clone for CommandParserSource<'source>
impl<'source> Clone for CommandParserSource<'source>
Source§fn clone(&self) -> CommandParserSource<'source>
fn clone(&self) -> CommandParserSource<'source>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'source> Copy for CommandParserSource<'source>
Auto Trait Implementations§
impl<'source> !RefUnwindSafe for CommandParserSource<'source>
impl<'source> !UnwindSafe for CommandParserSource<'source>
impl<'source> Freeze for CommandParserSource<'source>
impl<'source> Send for CommandParserSource<'source>
impl<'source> Sync for CommandParserSource<'source>
impl<'source> Unpin for CommandParserSource<'source>
impl<'source> UnsafeUnpin for CommandParserSource<'source>
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<>>