0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2025-03-09 21:47:00 -04: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, IsArrayBuffer,
} }
#[derive(Clone, Copy)] #[derive(Clone, Copy, Debug)]
#[repr(u8)] #[repr(u8)]
#[non_exhaustive] #[non_exhaustive]
pub enum CType { pub enum CType {
@ -107,7 +107,7 @@ pub enum CType {
CallbackOptions = 255, CallbackOptions = 255,
} }
#[derive(Clone, Copy)] #[derive(Clone, Copy, Debug)]
#[non_exhaustive] #[non_exhaustive]
pub enum Type { pub enum Type {
Void, Void,
@ -251,6 +251,7 @@ impl<T: Default> FastApiTypedArray<T> {
} }
} }
#[derive(Copy, Clone)]
pub struct FastFunction { pub struct FastFunction {
pub args: &'static [Type], pub args: &'static [Type],
pub function: *const c_void, pub function: *const c_void,