pub struct AssertValid<C: Config>(/* private fields */);Expand description
Compile-time proof that a Config is internally conformant.
Instantiating this type evaluates its assertions; every generic entry point in the crate
does so, which is what makes a bad Config a build failure at its first use.
It checks the policy only. Whether a table is big enough to keep that policy is checked by
the table — see Capacity.
Implementations§
Auto Trait Implementations§
impl<C> Forget for AssertValid<C>
impl<C> Freeze for AssertValid<C>where
PhantomData<C>: Freeze,
impl<C> Move for AssertValid<C>
impl<C> RefUnwindSafe for AssertValid<C>where
PhantomData<C>: RefUnwindSafe,
impl<C> Send for AssertValid<C>where
PhantomData<C>: Send,
impl<C> Sync for AssertValid<C>where
PhantomData<C>: Sync,
impl<C> Unpin for AssertValid<C>where
PhantomData<C>: Unpin,
impl<C> UnsafeUnpin for AssertValid<C>where
PhantomData<C>: UnsafeUnpin,
impl<C> UnwindSafe for AssertValid<C>where
PhantomData<C>: UnwindSafe,
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