From 517f4d70324ecef0070a1b1be2a53e4515299b94 Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Wed, 28 Jun 2023 07:46:25 -0600 Subject: [PATCH] chore: Add copy, clone and debug to some fast API types (#1257) chore: Add copy, clone and debug to some types --- src/fast_api.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fast_api.rs b/src/fast_api.rs index 6cf47961..05db2a8a 100644 --- a/src/fast_api.rs +++ b/src/fast_api.rs @@ -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 FastApiTypedArray { } } +#[derive(Copy, Clone)] pub struct FastFunction { pub args: &'static [Type], pub function: *const c_void,