@@ -62,6 +62,10 @@ use std::ops::Range;
6262/// ```
6363///
6464/// [`RsVec`]: RsVec
65+ /// [`from_bit_vec`]: WaveletMatrix::from_bit_vec
66+ /// [`from_slice`]: WaveletMatrix::from_slice
67+ /// [`from_bit_vec_pc`]: WaveletMatrix::from_bit_vec_pc
68+ /// [`from_slice_pc`]: WaveletMatrix::from_slice_pc
6569#[ derive( Clone , Debug ) ]
6670#[ cfg_attr( feature = "serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
6771pub struct WaveletMatrix {
@@ -1080,7 +1084,7 @@ impl WaveletMatrix {
10801084 /// Get the `k`-th smallest element in the encoded sequence in the specified `range`,
10811085 /// where `k = 0` returns the smallest element.
10821086 /// The `range` is a half-open interval, meaning that the `end` index is exclusive.
1083- /// The `k`-th smallest element is returned as a `BitVec`,
1087+ /// The `k`-th smallest element is returned as a [ `BitVec`] ,
10841088 /// where the least significant bit is the first element.
10851089 ///
10861090 /// Returns `None` if the `range` is out of bounds, or if `k` is greater than the size of the range.
@@ -1114,6 +1118,8 @@ impl WaveletMatrix {
11141118 ///
11151119 /// # Panics
11161120 /// May panic if the `i` is out of bounds, or returns an empty bit vector.
1121+ ///
1122+ /// [`get_sorted`]: Self::get_sorted
11171123 #[ must_use]
11181124 pub fn get_sorted_unchecked ( & self , i : usize ) -> BitVec {
11191125 self . quantile_unchecked ( 0 ..self . len ( ) , i)
@@ -1966,6 +1972,8 @@ impl WaveletMatrix {
19661972 /// The iterator yields `BitVec` elements.
19671973 ///
19681974 /// See also [`iter_sorted_u64`] for an iterator that yields `u64` elements.
1975+ ///
1976+ /// [`iter_sorted_u64`]: Self::iter_sorted_u64
19691977 #[ must_use]
19701978 pub fn iter_sorted ( & self ) -> WaveletSortedRefIter < ' _ > {
19711979 WaveletSortedRefIter :: new ( self )
0 commit comments