pub struct ReturnFuncOption { /* private fields */ }
Implementations§
Source§impl ReturnFuncOption
impl ReturnFuncOption
pub fn expr(&self) -> Option<Expr>
pub fn return_token(&self) -> Option<SyntaxToken>
Trait Implementations§
Source§impl AstNode for ReturnFuncOption
impl AstNode for ReturnFuncOption
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 ReturnFuncOption
impl Clone for ReturnFuncOption
Source§fn clone(&self) -> ReturnFuncOption
fn clone(&self) -> ReturnFuncOption
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 ReturnFuncOption
impl Debug for ReturnFuncOption
Source§impl From<ReturnFuncOption> for FuncOption
impl From<ReturnFuncOption> for FuncOption
Source§fn from(node: ReturnFuncOption) -> FuncOption
fn from(node: ReturnFuncOption) -> FuncOption
Converts to this type from the input type.
Source§impl Hash for ReturnFuncOption
impl Hash for ReturnFuncOption
Source§impl PartialEq for ReturnFuncOption
impl PartialEq for ReturnFuncOption
impl Eq for ReturnFuncOption
impl StructuralPartialEq for ReturnFuncOption
Auto Trait Implementations§
impl Freeze for ReturnFuncOption
impl !RefUnwindSafe for ReturnFuncOption
impl !Send for ReturnFuncOption
impl !Sync for ReturnFuncOption
impl Unpin for ReturnFuncOption
impl !UnwindSafe for ReturnFuncOption
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