pub struct ConstructorBuilder { /* private fields */ }
Implementations§
Source§impl ConstructorBuilder
impl ConstructorBuilder
pub fn new() -> Self
pub fn build(self) -> ConstructorDefinition
pub fn parameter( &mut self, type_name: TypeName, name: impl Into<String>, ) -> &mut Self
pub fn payable(&mut self) -> &mut Self
pub fn visibility(&mut self, visibility: Visibility) -> &mut Self
pub fn body<F>(&mut self, build_body: F) -> &mut Selfwhere
F: FnOnce(&mut BlockBuilder),
Trait Implementations§
Source§impl Clone for ConstructorBuilder
impl Clone for ConstructorBuilder
Source§fn clone(&self) -> ConstructorBuilder
fn clone(&self) -> ConstructorBuilder
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 ConstructorBuilder
impl Debug for ConstructorBuilder
Auto Trait Implementations§
impl Freeze for ConstructorBuilder
impl RefUnwindSafe for ConstructorBuilder
impl Send for ConstructorBuilder
impl Sync for ConstructorBuilder
impl Unpin for ConstructorBuilder
impl UnwindSafe for ConstructorBuilder
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