pub struct SecondaryConstructor { /* private fields */ }
Expand description
Defines Class’s secondary constructor
Implementations§
Source§impl SecondaryConstructor
impl SecondaryConstructor
pub fn new() -> SecondaryConstructor
pub fn parameter(self, parameter: Parameter) -> SecondaryConstructor
pub fn delegate_argument(self, argument: Argument) -> SecondaryConstructor
pub fn body<CodeBlockLike: Into<CodeBlock>>( self, body: CodeBlockLike, ) -> SecondaryConstructor
pub fn visibility_modifier( self, visibility_modifier: VisibilityModifier, ) -> SecondaryConstructor
Trait Implementations§
Source§impl Clone for SecondaryConstructor
impl Clone for SecondaryConstructor
Source§fn clone(&self) -> SecondaryConstructor
fn clone(&self) -> SecondaryConstructor
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 SecondaryConstructor
impl Debug for SecondaryConstructor
Source§impl RenderKotlin for SecondaryConstructor
impl RenderKotlin for SecondaryConstructor
Source§fn render_string(&self) -> String
fn render_string(&self) -> String
Shortcut method for converting RenderKotlin::render_into output into String.
Auto Trait Implementations§
impl Freeze for SecondaryConstructor
impl RefUnwindSafe for SecondaryConstructor
impl Send for SecondaryConstructor
impl Sync for SecondaryConstructor
impl Unpin for SecondaryConstructor
impl UnwindSafe for SecondaryConstructor
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