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
}