pub struct FunctionPointerDefBuilder { /* private fields */ }Expand description
Builder for FunctionPointerDef
Implementations§
Source§impl FunctionPointerDefBuilder
impl FunctionPointerDefBuilder
Sourcepub const fn new() -> FunctionPointerDefBuilder
pub const fn new() -> FunctionPointerDefBuilder
Creates a new FunctionPointerDefBuilder
Sourcepub const fn abi(self, abi: FunctionAbi) -> FunctionPointerDefBuilder
pub const fn abi(self, abi: FunctionAbi) -> FunctionPointerDefBuilder
Sets the abi for the FunctionPointerDef
Sourcepub const fn parameter_types(
self,
parameters: &'static [fn() -> &'static Shape],
) -> FunctionPointerDefBuilder
pub const fn parameter_types( self, parameters: &'static [fn() -> &'static Shape], ) -> FunctionPointerDefBuilder
Sets the parameters for the FunctionPointerDef
Sourcepub const fn return_type(
self,
ty: fn() -> &'static Shape,
) -> FunctionPointerDefBuilder
pub const fn return_type( self, ty: fn() -> &'static Shape, ) -> FunctionPointerDefBuilder
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