pub trait Unbind<I = usize>:
Send
+ Sync
+ Copy
+ Debug
+ Seal {
// Required methods
unsafe fn new_unbound(idx: I) -> Self;
fn unbound(self) -> I;
}
Expand description
sealed trait for types that can be created from “unbound” values, as long as their struct preconditions are upheld
Required Methods§
Sourceunsafe fn new_unbound(idx: I) -> Self
unsafe fn new_unbound(idx: I) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.