pub struct SwordLayerRegistrar {
pub name: &'static str,
pub register: fn(&Config) -> Box<dyn FnOnce(&mut dyn Any) + Send>,
pub display: fn(&Config),
}Fields§
§name: &'static str§register: fn(&Config) -> Box<dyn FnOnce(&mut dyn Any) + Send>§display: fn(&Config)Trait Implementations§
impl Collect for SwordLayerRegistrar
Auto Trait Implementations§
impl Freeze for SwordLayerRegistrar
impl RefUnwindSafe for SwordLayerRegistrar
impl Send for SwordLayerRegistrar
impl Sync for SwordLayerRegistrar
impl Unpin for SwordLayerRegistrar
impl UnsafeUnpin for SwordLayerRegistrar
impl UnwindSafe for SwordLayerRegistrar
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