File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 * limitations under the License.
1414 */
1515
16+ //! Format katcp messages.
17+
1618use std:: ops:: AddAssign ;
1719use uninit:: prelude:: * ;
1820
Original file line number Diff line number Diff line change 1313 * limitations under the License.
1414 */
1515
16- //! The basic katcp message type
16+ //! Python wrapper for katcp messages.
1717
1818use pyo3:: exceptions:: PyRuntimeError ;
1919use pyo3:: gc:: PyVisit ;
Original file line number Diff line number Diff line change 1313 * limitations under the License.
1414 */
1515
16+ //! Parse katcp messages.
17+
1618use adjacent_pair_iterator:: AdjacentPairIterator ;
1719use pyo3:: buffer:: { Element , PyBuffer , ReadOnlyCell } ;
1820use pyo3:: exceptions:: { PyBufferError , PyValueError } ;
@@ -27,7 +29,7 @@ use crate::tables::PARSER_TABLE;
2729/// A katcp message produced by parsing.
2830///
2931/// To minimise the number of memory allocations, the name and the arguments
30- /// are all stored back-to-back in a [Vec<u8>], and the individual fields just
32+ /// are all stored back-to-back in a [` Vec<u8>` ], and the individual fields just
3133/// store offsets into this vector. This allows a message with many arguments
3234/// to use only O(1) allocations.
3335#[ derive( Clone , Debug ) ]
@@ -97,7 +99,7 @@ impl ParseError {
9799 }
98100}
99101
100- /// Abstract read access to either [T] or [ReadOnlyCell<T>].
102+ /// Abstract read access to either T or [` ReadOnlyCell<T>` ].
101103pub trait ReadAccess < T : Copy > : Sized {
102104 fn read ( & self ) -> T ;
103105}
You can’t perform that action at this time.
0 commit comments