pub struct PositionFn { /* private fields */ }Implementations§
Source§impl PositionFn
impl PositionFn
pub fn expr(&self) -> Option<Expr>
pub fn l_paren_token(&self) -> Option<SyntaxToken>
pub fn r_paren_token(&self) -> Option<SyntaxToken>
pub fn in_token(&self) -> Option<SyntaxToken>
pub fn position_token(&self) -> Option<SyntaxToken>
Trait Implementations§
Source§impl AstNode for PositionFn
impl AstNode for PositionFn
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 PositionFn
impl Clone for PositionFn
Source§fn clone(&self) -> PositionFn
fn clone(&self) -> PositionFn
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 PositionFn
impl Debug for PositionFn
Source§impl Hash for PositionFn
impl Hash for PositionFn
Source§impl PartialEq for PositionFn
impl PartialEq for PositionFn
impl Eq for PositionFn
impl StructuralPartialEq for PositionFn
Auto Trait Implementations§
impl Freeze for PositionFn
impl !RefUnwindSafe for PositionFn
impl !Send for PositionFn
impl !Sync for PositionFn
impl Unpin for PositionFn
impl !UnwindSafe for PositionFn
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