Struct kotlin_poet_rs::spec::PropertySetter
source · pub struct PropertySetter { /* private fields */ }
Implementations§
source§impl PropertySetter
impl PropertySetter
pub fn new<CodeBlockLike: Into<CodeBlock>>( code: CodeBlockLike, ) -> PropertySetter
pub fn visibility_modifier( self, visibility_modifier: VisibilityModifier, ) -> PropertySetter
sourcepub fn annotation(self, annotation: Annotation) -> Self
pub fn annotation(self, annotation: Annotation) -> Self
Adds Annotation to this entity. They will appear in order this method is called.
Trait Implementations§
source§impl Clone for PropertySetter
impl Clone for PropertySetter
source§fn clone(&self) -> PropertySetter
fn clone(&self) -> PropertySetter
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 PropertySetter
impl Debug for PropertySetter
source§impl RenderKotlin for PropertySetter
impl RenderKotlin for PropertySetter
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 PropertySetter
impl RefUnwindSafe for PropertySetter
impl Send for PropertySetter
impl Sync for PropertySetter
impl Unpin for PropertySetter
impl UnwindSafe for PropertySetter
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
)