pub struct FunctionEntity { /* private fields */ }
Expand description
Builder for registering php function.
Implementations§
Source§impl FunctionEntity
impl FunctionEntity
Sourcepub fn arguments(
&mut self,
arguments: impl IntoIterator<Item = Argument>,
) -> &mut Self
pub fn arguments( &mut self, arguments: impl IntoIterator<Item = Argument>, ) -> &mut Self
Add many function argument infos.
Sourcepub fn return_type(&mut self, return_type: ReturnType) -> &mut Self
pub fn return_type(&mut self, return_type: ReturnType) -> &mut Self
Add return type info.
Auto Trait Implementations§
impl Freeze for FunctionEntity
impl !RefUnwindSafe for FunctionEntity
impl !Send for FunctionEntity
impl !Sync for FunctionEntity
impl Unpin for FunctionEntity
impl !UnwindSafe for FunctionEntity
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