pub struct Reparser(/* private fields */);Expand description
A parsing function for a specific braced-block.
Implementations§
Source§impl Reparser
impl Reparser
Sourcepub fn for_node(
node: SyntaxKind,
first_child: Option<SyntaxKind>,
parent: Option<SyntaxKind>,
) -> Option<Reparser>
pub fn for_node( node: SyntaxKind, first_child: Option<SyntaxKind>, parent: Option<SyntaxKind>, ) -> Option<Reparser>
If the node is a braced block, return the corresponding Reparser.
Auto Trait Implementations§
impl Freeze for Reparser
impl RefUnwindSafe for Reparser
impl Send for Reparser
impl Sync for Reparser
impl Unpin for Reparser
impl UnwindSafe for Reparser
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