#[repr(C)]pub struct FunctionPointerDef {
pub abi: FunctionAbi,
pub parameters: &'static [fn() -> &'static Shape],
pub return_type: fn() -> &'static Shape,
}
Expand description
Common fields for function pointer types
Fields§
§abi: FunctionAbi
The calling abi of the function pointer
parameters: &'static [fn() -> &'static Shape]
All parameter types, in declaration order
return_type: fn() -> &'static Shape
The return type
Implementations§
Source§impl FunctionPointerDef
impl FunctionPointerDef
Sourcepub const fn builder() -> FunctionPointerDefBuilder
pub const fn builder() -> FunctionPointerDefBuilder
Returns a builder for FunctionPointerDef
Trait Implementations§
Source§impl Clone for FunctionPointerDef
impl Clone for FunctionPointerDef
Source§fn clone(&self) -> FunctionPointerDef
fn clone(&self) -> FunctionPointerDef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FunctionPointerDef
impl Debug for FunctionPointerDef
impl Copy for FunctionPointerDef
Auto Trait Implementations§
impl Freeze for FunctionPointerDef
impl RefUnwindSafe for FunctionPointerDef
impl Send for FunctionPointerDef
impl Sync for FunctionPointerDef
impl Unpin for FunctionPointerDef
impl UnwindSafe for FunctionPointerDef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more