pub struct AutoResource(/* private fields */);Expand description
A resource registered by #[resource] for automatic discovery.
Implementations§
Source§impl AutoResource
impl AutoResource
Sourcepub const fn new(definition: fn() -> ResourceDef) -> Self
pub const fn new(definition: fn() -> ResourceDef) -> Self
Wraps a resource’s definition function.
Trait Implementations§
impl Collect for AutoResource
Auto Trait Implementations§
impl Freeze for AutoResource
impl RefUnwindSafe for AutoResource
impl Send for AutoResource
impl Sync for AutoResource
impl Unpin for AutoResource
impl UnsafeUnpin for AutoResource
impl UnwindSafe for AutoResource
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