Struct kotlin_poet_rs::spec::TypeAlias
source · pub struct TypeAlias { /* private fields */ }
Expand description
Kotlin’s typealias
declaration
Implementations§
source§impl TypeAlias
impl TypeAlias
sourcepub fn new<NameLike: Into<Name>, TypeLike: Into<Type>>(
name: NameLike,
actual: TypeLike,
) -> TypeAlias
pub fn new<NameLike: Into<Name>, TypeLike: Into<Type>>( name: NameLike, actual: TypeLike, ) -> TypeAlias
sourcepub fn generic_parameter<NameLike: Into<Name>>(self, name: NameLike) -> Self
pub fn generic_parameter<NameLike: Into<Name>>(self, name: NameLike) -> Self
Adds generic parameter to the type alias Multiple generic parameters can be added, they will appear in order this method is called.
sourcepub fn visibility_modifier(
self,
visibility_modifier: VisibilityModifier,
) -> Self
pub fn visibility_modifier( self, visibility_modifier: VisibilityModifier, ) -> Self
Sets VisibilityModifier. VisibilityModifier::Protected is not allowed
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 RenderKotlin for TypeAlias
impl RenderKotlin for TypeAlias
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 TypeAlias
impl RefUnwindSafe for TypeAlias
impl Send for TypeAlias
impl Sync for TypeAlias
impl Unpin for TypeAlias
impl UnwindSafe for TypeAlias
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
)