pub struct GlobalScope<T: ScopeObject>(/* private fields */);Expand description
Global access scope that can be retrieved directly in the command function.
Implementations§
Trait Implementations§
Source§impl<'a, R: Runtime, T: ScopeObject> CommandArg<'a, R> for GlobalScope<T>
impl<'a, R: Runtime, T: ScopeObject> CommandArg<'a, R> for GlobalScope<T>
Source§fn from_command(command: CommandItem<'a, R>) -> Result<Self, InvokeError>
fn from_command(command: CommandItem<'a, R>) -> Result<Self, InvokeError>
Grabs the ResolvedScope from the CommandItem and returns the associated GlobalScope.
Auto Trait Implementations§
impl<T> Freeze for GlobalScope<T>
impl<T> RefUnwindSafe for GlobalScope<T>where
T: RefUnwindSafe,
impl<T> Send for GlobalScope<T>
impl<T> Sync for GlobalScope<T>
impl<T> Unpin for GlobalScope<T>
impl<T> UnsafeUnpin for GlobalScope<T>
impl<T> UnwindSafe for GlobalScope<T>where
T: RefUnwindSafe,
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