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:
parent
b1884eb1f5
commit
54bdfe722e
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue