pub struct FString(/* private fields */);Implementations§
Source§impl FString
impl FString
Sourcepub fn cast(node: SyntaxNode) -> Option<Self>
pub fn cast(node: SyntaxNode) -> Option<Self>
Wrap node if its SyntaxKind matches; otherwise
return None. O(1) — just a kind check.
Sourcepub fn syntax(&self) -> &SyntaxNode
pub fn syntax(&self) -> &SyntaxNode
Borrow the underlying SyntaxNode. Useful for
downstream traversals that want CST-level access.
Trait Implementations§
impl Eq for FString
impl StructuralPartialEq for FString
Auto Trait Implementations§
impl !RefUnwindSafe for FString
impl !Send for FString
impl !Sync for FString
impl !UnwindSafe for FString
impl Freeze for FString
impl Unpin for FString
impl UnsafeUnpin for FString
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