pub struct NoConstraint;Expand description
The universal constraint — every type satisfies it.
Use this constraint for fully polymorphic HKT implementations like
Vec, Option, Box, etc., where no specific bounds are required
on the inner type.
§Example
use deep_causality_haft::{Satisfies, NoConstraint};
// This blanket impl means String, Vec<u8>, custom types, etc. all satisfy NoConstraint
fn accepts_any<T: Satisfies<NoConstraint>>(_: T) {}
accepts_any("hello");
accepts_any(42);
accepts_any(vec![1, 2, 3]);Auto Trait Implementations§
impl Freeze for NoConstraint
impl RefUnwindSafe for NoConstraint
impl Send for NoConstraint
impl Sync for NoConstraint
impl Unpin for NoConstraint
impl UnsafeUnpin for NoConstraint
impl UnwindSafe for NoConstraint
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