pub struct PackRegistration(pub &'static dyn PackFactory);Expand description
Newtype wrapper collected by inventory so pack crates can submit
&'static dyn PackFactory references without the type-ascription syntax
that inventory::submit! does not support for bare trait-object references
(ADR-063).
Tuple Fields§
§0: &'static dyn PackFactoryTrait Implementations§
impl Collect for PackRegistration
Auto Trait Implementations§
impl Freeze for PackRegistration
impl !RefUnwindSafe for PackRegistration
impl Send for PackRegistration
impl Sync for PackRegistration
impl Unpin for PackRegistration
impl UnsafeUnpin for PackRegistration
impl !UnwindSafe for PackRegistration
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