pub struct AdapterEntry {
pub adapter: &'static dyn KnitAdapter,
}Expand description
Registry entry produced by [declare_adapter!] and consumed by
lookup_adapter. Carries a static reference to a KnitAdapter
implementation; inventory::collect! lets inventory::iter walk
every entry submitted across the crate.
Fields§
§adapter: &'static dyn KnitAdapterTrait Implementations§
impl Collect for AdapterEntry
Auto Trait Implementations§
impl !RefUnwindSafe for AdapterEntry
impl !UnwindSafe for AdapterEntry
impl Freeze for AdapterEntry
impl Send for AdapterEntry
impl Sync for AdapterEntry
impl Unpin for AdapterEntry
impl UnsafeUnpin for AdapterEntry
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