Struct kotlin_poet_rs::spec::PropertyGetter
source · pub struct PropertyGetter { /* private fields */ }
Implementations§
source§impl PropertyGetter
impl PropertyGetter
pub fn new<CodeBlockLike: Into<CodeBlock>>( code: CodeBlockLike, ) -> PropertyGetter
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 PropertyGetter
impl Clone for PropertyGetter
source§fn clone(&self) -> PropertyGetter
fn clone(&self) -> PropertyGetter
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 PropertyGetter
impl Debug for PropertyGetter
source§impl RenderKotlin for PropertyGetter
impl RenderKotlin for PropertyGetter
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 PropertyGetter
impl RefUnwindSafe for PropertyGetter
impl Send for PropertyGetter
impl Sync for PropertyGetter
impl Unpin for PropertyGetter
impl UnwindSafe for PropertyGetter
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
)