0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2025-01-13 01:22:42 -05:00

chore: Add copy, clone and debug to some fast API types (#1257)

chore: Add copy, clone and debug to some types
This commit is contained in:
Matt Mastracci 2023-06-28 07:46:25 -06:00 committed by GitHub
parent 7419b38aac
commit 517f4d7032
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,7 +84,7 @@ pub enum SequenceType {
IsArrayBuffer,
}
#[derive(Clone, Copy)]
#[derive(Clone, Copy, Debug)]
#[repr(u8)]
#[non_exhaustive]
pub enum CType {
@ -107,7 +107,7 @@ pub enum CType {
CallbackOptions = 255,
}
#[derive(Clone, Copy)]
#[derive(Clone, Copy, Debug)]
#[non_exhaustive]
pub enum Type {
Void,
@ -251,6 +251,7 @@ impl<T: Default> FastApiTypedArray<T> {
}
}
#[derive(Copy, Clone)]
pub struct FastFunction {
pub args: &'static [Type],
pub function: *const c_void,