pub struct ComponentReg {
pub name: fn() -> &'static str,
pub make: Maker,
}Expand description
One registered component: its name and its maker. Emitted by
#[derive(Component)] for every component, universally (D73).
Fields§
§name: fn() -> &'static strAccessor rather than a const string, so the derive can compute it
from the type without const gymnastics.
make: MakerAuto Trait Implementations§
impl Freeze for ComponentReg
impl RefUnwindSafe for ComponentReg
impl Send for ComponentReg
impl Sync for ComponentReg
impl Unpin for ComponentReg
impl UnsafeUnpin for ComponentReg
impl UnwindSafe for ComponentReg
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