pub struct FunctionItem(/* private fields */);
Implementations§
Source§impl FunctionItem
impl FunctionItem
pub fn name(&self) -> Option<SyntaxToken>
pub fn generic_params(&self) -> Option<GenericParams>
pub fn params(&self) -> Vec<FunctionParam>
pub fn return_type(&self) -> Option<Type>
pub fn body(&self) -> Option<Block>
pub fn export(&self) -> Option<SyntaxToken>
pub fn inline(&self) -> Option<SyntaxToken>
Trait Implementations§
Source§impl AstNode for FunctionItem
impl AstNode for FunctionItem
fn cast(node: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
Source§impl Clone for FunctionItem
impl Clone for FunctionItem
Source§fn clone(&self) -> FunctionItem
fn clone(&self) -> FunctionItem
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 FunctionItem
impl !RefUnwindSafe for FunctionItem
impl !Send for FunctionItem
impl !Sync for FunctionItem
impl Unpin for FunctionItem
impl !UnwindSafe for FunctionItem
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