pub struct Assert<const OK: bool>;Expand description
A compile-time assertion that a condition is true.
Trait Implementations§
Auto Trait Implementations§
impl<const OK: bool> Freeze for Assert<OK>
impl<const OK: bool> RefUnwindSafe for Assert<OK>
impl<const OK: bool> Send for Assert<OK>
impl<const OK: bool> Sync for Assert<OK>
impl<const OK: bool> Unpin for Assert<OK>
impl<const OK: bool> UnwindSafe for Assert<OK>
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