Struct kotlin_poet_rs::spec::PrimaryConstructor
source · pub struct PrimaryConstructor { /* private fields */ }
Expand description
Defines Class’s primary constructor
Implementations§
source§impl PrimaryConstructor
impl PrimaryConstructor
pub fn new() -> PrimaryConstructor
pub fn parameter(self, parameter: Parameter) -> PrimaryConstructor
pub fn property(self, property: Property) -> PrimaryConstructor
pub fn visibility_modifier( self, visibility_modifier: VisibilityModifier, ) -> PrimaryConstructor
Trait Implementations§
source§impl Clone for PrimaryConstructor
impl Clone for PrimaryConstructor
source§fn clone(&self) -> PrimaryConstructor
fn clone(&self) -> PrimaryConstructor
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 PrimaryConstructor
impl Debug for PrimaryConstructor
source§impl RenderKotlin for PrimaryConstructor
impl RenderKotlin for PrimaryConstructor
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 PrimaryConstructor
impl RefUnwindSafe for PrimaryConstructor
impl Send for PrimaryConstructor
impl Sync for PrimaryConstructor
impl Unpin for PrimaryConstructor
impl UnwindSafe for PrimaryConstructor
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
)