pub struct FunctionType(/* private fields */);
Implementations§
Source§impl FunctionType
impl FunctionType
pub fn params(&self) -> Vec<FunctionTypeParam>
pub fn return_type(&self) -> Option<Type>
Trait Implementations§
Source§impl AstNode for FunctionType
impl AstNode for FunctionType
fn cast(node: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
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 moreAuto 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