pub struct CreateFunction { /* private fields */ }
Implementations§
Source§impl CreateFunction
impl CreateFunction
pub fn option_list(&self) -> Option<FuncOptionList>
pub fn or_replace(&self) -> Option<OrReplace>
pub fn param_list(&self) -> Option<ParamList>
pub fn path(&self) -> Option<Path>
pub fn ret_type(&self) -> Option<RetType>
pub fn create_token(&self) -> Option<SyntaxToken>
pub fn function_token(&self) -> Option<SyntaxToken>
Trait Implementations§
Source§impl AstNode for CreateFunction
impl AstNode for CreateFunction
fn can_cast(kind: SyntaxKind) -> bool
fn cast(syntax: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
fn clone_for_update(&self) -> Selfwhere
Self: Sized,
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
Source§impl Clone for CreateFunction
impl Clone for CreateFunction
Source§fn clone(&self) -> CreateFunction
fn clone(&self) -> CreateFunction
Returns a duplicate 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 CreateFunction
impl Debug for CreateFunction
Source§impl From<CreateFunction> for Stmt
impl From<CreateFunction> for Stmt
Source§fn from(node: CreateFunction) -> Stmt
fn from(node: CreateFunction) -> Stmt
Converts to this type from the input type.
Source§impl Hash for CreateFunction
impl Hash for CreateFunction
Source§impl PartialEq for CreateFunction
impl PartialEq for CreateFunction
impl Eq for CreateFunction
impl StructuralPartialEq for CreateFunction
Auto Trait Implementations§
impl Freeze for CreateFunction
impl !RefUnwindSafe for CreateFunction
impl !Send for CreateFunction
impl !Sync for CreateFunction
impl Unpin for CreateFunction
impl !UnwindSafe for CreateFunction
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