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