mirror of
https://github.com/denoland/rusty_v8.git
synced 2024-11-21 20:28:58 +00:00
Inline hint for default FastFunction trait methods (#1199)
This commit is contained in:
parent
b1884eb1f5
commit
54bdfe722e
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user