@@ -18,7 +18,7 @@ use crate::{
1818use std:: { marker:: PhantomData , mem:: ManuallyDrop , ptr:: NonNull , str} ;
1919
2020impl Language {
21- /// Reconstructs a [Language] from a raw pointer.
21+ /// Reconstructs a [` Language` ] from a raw pointer.
2222 ///
2323 /// # Safety
2424 ///
@@ -27,14 +27,14 @@ impl Language {
2727 Language ( ptr)
2828 }
2929
30- /// Consumes the [Language], returning a raw pointer to the underlying C structure.
30+ /// Consumes the [` Language` ], returning a raw pointer to the underlying C structure.
3131 pub fn into_raw ( self ) -> * const TSLanguage {
3232 ManuallyDrop :: new ( self ) . 0
3333 }
3434}
3535
3636impl Parser {
37- /// Reconstructs a [Parser] from a raw pointer.
37+ /// Reconstructs a [` Parser` ] from a raw pointer.
3838 ///
3939 /// # Safety
4040 ///
@@ -43,7 +43,7 @@ impl Parser {
4343 Parser ( NonNull :: new_unchecked ( ptr) )
4444 }
4545
46- /// Consumes the [Parser], returning a raw pointer to the underlying C structure.
46+ /// Consumes the [` Parser` ], returning a raw pointer to the underlying C structure.
4747 ///
4848 /// # Safety
4949 ///
@@ -56,7 +56,7 @@ impl Parser {
5656}
5757
5858impl Tree {
59- /// Reconstructs a [Tree] from a raw pointer.
59+ /// Reconstructs a [` Tree` ] from a raw pointer.
6060 ///
6161 /// # Safety
6262 ///
@@ -65,14 +65,14 @@ impl Tree {
6565 Tree ( NonNull :: new_unchecked ( ptr) )
6666 }
6767
68- /// Consumes the [Tree], returning a raw pointer to the underlying C structure.
68+ /// Consumes the [` Tree` ], returning a raw pointer to the underlying C structure.
6969 pub fn into_raw ( self ) -> * mut TSTree {
7070 ManuallyDrop :: new ( self ) . 0 . as_ptr ( )
7171 }
7272}
7373
7474impl < ' tree > Node < ' tree > {
75- /// Reconstructs a [Node] from a raw pointer.
75+ /// Reconstructs a [` Node` ] from a raw pointer.
7676 ///
7777 /// # Safety
7878 ///
@@ -81,14 +81,14 @@ impl<'tree> Node<'tree> {
8181 Node ( raw, PhantomData )
8282 }
8383
84- /// Consumes the [Node], returning a raw pointer to the underlying C structure.
84+ /// Consumes the [` Node` ], returning a raw pointer to the underlying C structure.
8585 pub fn into_raw ( self ) -> TSNode {
8686 ManuallyDrop :: new ( self ) . 0
8787 }
8888}
8989
9090impl < ' a > TreeCursor < ' a > {
91- /// Reconstructs a [TreeCursor] from a raw pointer.
91+ /// Reconstructs a [` TreeCursor` ] from a raw pointer.
9292 ///
9393 /// # Safety
9494 ///
@@ -97,14 +97,14 @@ impl<'a> TreeCursor<'a> {
9797 TreeCursor ( raw, PhantomData )
9898 }
9999
100- /// Consumes the [TreeCursor], returning a raw pointer to the underlying C structure.
100+ /// Consumes the [` TreeCursor` ], returning a raw pointer to the underlying C structure.
101101 pub fn into_raw ( self ) -> TSTreeCursor {
102102 ManuallyDrop :: new ( self ) . 0
103103 }
104104}
105105
106106impl Query {
107- /// Reconstructs a [Query] from a raw pointer.
107+ /// Reconstructs a [` Query` ] from a raw pointer.
108108 ///
109109 /// # Safety
110110 ///
@@ -113,14 +113,14 @@ impl Query {
113113 Query :: from_raw_parts ( ptr, source)
114114 }
115115
116- /// Consumes the [Query], returning a raw pointer to the underlying C structure.
116+ /// Consumes the [` Query` ], returning a raw pointer to the underlying C structure.
117117 pub fn into_raw ( self ) -> * mut TSQuery {
118118 ManuallyDrop :: new ( self ) . ptr . as_ptr ( )
119119 }
120120}
121121
122122impl QueryCursor {
123- /// Reconstructs a [QueryCursor] from a raw pointer.
123+ /// Reconstructs a [` QueryCursor` ] from a raw pointer.
124124 ///
125125 /// # Safety
126126 ///
@@ -131,14 +131,14 @@ impl QueryCursor {
131131 }
132132 }
133133
134- /// Consumes the [QueryCursor], returning a raw pointer to the underlying C structure.
134+ /// Consumes the [` QueryCursor` ], returning a raw pointer to the underlying C structure.
135135 pub fn into_raw ( self ) -> * mut TSQueryCursor {
136136 ManuallyDrop :: new ( self ) . ptr . as_ptr ( )
137137 }
138138}
139139
140140impl LookaheadIterator {
141- /// Reconstructs a [LookaheadIterator] from a raw pointer.
141+ /// Reconstructs a [` LookaheadIterator` ] from a raw pointer.
142142 ///
143143 /// # Safety
144144 ///
@@ -147,7 +147,7 @@ impl LookaheadIterator {
147147 LookaheadIterator ( NonNull :: new_unchecked ( ptr) )
148148 }
149149
150- /// Consumes the [LookaheadIterator], returning a raw pointer to the underlying C structure.
150+ /// Consumes the [` LookaheadIterator` ], returning a raw pointer to the underlying C structure.
151151 pub fn into_raw ( self ) -> * mut TSLookaheadIterator {
152152 ManuallyDrop :: new ( self ) . 0 . as_ptr ( )
153153 }
0 commit comments