Enum kotlin_poet_rs::spec::AnnotationTarget
source · pub enum AnnotationTarget {
File,
Property,
Field,
Get,
Set,
Receiver,
Param,
SetParam,
Delegate,
}
Expand description
Specifies exactly where this annotation will be applied.
Missing targets are represented as Option
Variants§
File
Annotation applied to file
Property
Annotation applied to property. Annotations with this target are not visible to Java. If you need Java visibility use AnnotationTarget::Field
Field
Annotation applied to backing field of the property
Get
Property getter
Set
Property setter
Receiver
Receiver parameter of an extension function or property
Param
Constructor parameter
SetParam
Property setter parameter
Delegate
The field storing the delegate instance for a delegated property
Trait Implementations§
source§impl Clone for AnnotationTarget
impl Clone for AnnotationTarget
source§fn clone(&self) -> AnnotationTarget
fn clone(&self) -> AnnotationTarget
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 AnnotationTarget
impl Debug for AnnotationTarget
source§impl RenderKotlin for AnnotationTarget
impl RenderKotlin for AnnotationTarget
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 AnnotationTarget
impl RefUnwindSafe for AnnotationTarget
impl Send for AnnotationTarget
impl Sync for AnnotationTarget
impl Unpin for AnnotationTarget
impl UnwindSafe for AnnotationTarget
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
)