pub struct FunctionPointerDefBuilder { /* private fields */ }
Expand description
Builder for FunctionPointerDef
Implementations§
Source§impl FunctionPointerDefBuilder
impl FunctionPointerDefBuilder
Sourcepub const fn abi(self, abi: FunctionAbi) -> Self
pub const fn abi(self, abi: FunctionAbi) -> Self
Sets the abi for the FunctionPointerDef
Sourcepub const fn parameter_types(
self,
parameters: &'static [fn() -> &'static Shape<'static>],
) -> Self
pub const fn parameter_types( self, parameters: &'static [fn() -> &'static Shape<'static>], ) -> Self
Sets the parameters for the FunctionPointerDef
Sourcepub const fn return_type(self, ty: fn() -> &'static Shape<'static>) -> Self
pub const fn return_type(self, ty: fn() -> &'static Shape<'static>) -> Self
Sets the return type for the FunctionPointerDef
Sourcepub const fn build(self) -> FunctionPointerDef
pub const fn build(self) -> FunctionPointerDef
Builds the FunctionPointerDef
Auto Trait Implementations§
impl Freeze for FunctionPointerDefBuilder
impl RefUnwindSafe for FunctionPointerDefBuilder
impl Send for FunctionPointerDefBuilder
impl Sync for FunctionPointerDefBuilder
impl Unpin for FunctionPointerDefBuilder
impl UnwindSafe for FunctionPointerDefBuilder
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