Struct kotlin_poet_rs::spec::FunctionType
source · pub struct FunctionType { /* private fields */ }
Implementations§
source§impl FunctionType
impl FunctionType
pub fn new<TypeLike: Into<Type>>(returns: TypeLike) -> Self
pub fn receiver<TypeLike: Into<Type>>(self, receiver: TypeLike) -> Self
pub fn parameter<TypeLike: Into<Type>>(self, parameters: TypeLike) -> Self
pub fn returns<TypeLike: Into<Type>>(self, returns: TypeLike) -> Self
pub fn suspended(self, flag: bool) -> Self
Trait Implementations§
source§impl Clone for FunctionType
impl Clone for FunctionType
source§fn clone(&self) -> FunctionType
fn clone(&self) -> FunctionType
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 FunctionType
impl Debug for FunctionType
source§impl PartialEq for FunctionType
impl PartialEq for FunctionType
source§impl RenderKotlin for FunctionType
impl RenderKotlin for FunctionType
source§fn render_string(&self) -> String
fn render_string(&self) -> String
Shortcut method for converting RenderKotlin::render_into output into String.
impl StructuralPartialEq for FunctionType
Auto Trait Implementations§
impl Freeze for FunctionType
impl RefUnwindSafe for FunctionType
impl Send for FunctionType
impl Sync for FunctionType
impl Unpin for FunctionType
impl UnwindSafe for FunctionType
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
)