pub trait V8Sliceable: Copy + Clone {
type V8;
// Required method
fn new_buf<'s>(
scope: &mut HandleScope<'s>,
buf: Local<'_, ArrayBuffer>,
byte_offset: usize,
length: usize,
) -> Option<Local<'s, Self::V8>>;
}
Expand description
A type that may be represented as a V8Slice
.
Required Associated Types§
Required Methods§
fn new_buf<'s>( scope: &mut HandleScope<'s>, buf: Local<'_, ArrayBuffer>, byte_offset: usize, length: usize, ) -> Option<Local<'s, Self::V8>>
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.