0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-12-26 17:19:09 -05:00

Inline hint for default FastFunction trait methods (#1199)

This commit is contained in:
Divy Srivastava 2023-03-16 18:33:21 +05:30 committed by GitHub
parent b1884eb1f5
commit 54bdfe722e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -250,9 +250,11 @@ impl<T: Default> FastApiTypedArray<T> {
}
pub trait FastFunction {
#[inline(always)]
fn args(&self) -> &'static [Type] {
&[]
}
#[inline(always)]
fn return_type(&self) -> CType {
CType::Void
}