pub trait FromInner<A> {
// Required method
fn from_inner(a: A) -> Self;
}Expand description
A const wrapper for into_inner.
Required Methods§
Sourcefn from_inner(a: A) -> Self
fn from_inner(a: A) -> Self
Consumes the atomic and returns the contained value.
This is safe because passing self by value guarantees that no other threads are
concurrently accessing the atomic data.
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.