Struct kotlin_poet_rs::spec::SecondaryConstructor
source · 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 copy 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)