pub trait Babelify: Send + Sync {
type Output: Serialize + DeserializeOwned + Send + Sync;
// Required method
fn babelify(self, ctx: &Context) -> Self::Output;
// Provided method
fn parallel(_cnt: usize) -> bool { ... }
}
Required Associated Types§
Required Methods§
Provided 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.