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:
parent
7419b38aac
commit
517f4d7032
1 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue