pub(crate) trait IntoObject {
type Out<'ob>;
// Required method
fn into_obj<const C: bool>(self, block: &Block<C>) -> Gc<Self::Out<'_>>;
}
Expand description
Trait for types that can be managed by the GC. This trait is implemented for
as many types as possible, even for types that are already Gc managed, Like
Gc<T>
. This makes it easier to write generic code for working with Gc types.
Required Associated Types§
Required Methods§
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.