@@ -126,7 +126,9 @@ impl Nucleotides {
126126 }
127127
128128 /// Cuts the 5' end of the [`Nucleotides`] just prior to the new starting
129- /// index (0-based). Be aware that this clones the internal buffer!
129+ /// index (0-based).
130+ ///
131+ /// This method clones the internal buffer.
130132 #[ inline]
131133 pub fn cut_to_start ( & mut self , new_start : usize ) {
132134 * self = Nucleotides ( self . 0 . drain ( new_start..) . collect ( ) ) ;
@@ -139,7 +141,8 @@ impl Nucleotides {
139141 }
140142
141143 /// Prepends the nucleotide sequence with the given slice.
142- /// This method always allocates.
144+ ///
145+ /// This method allocates.
143146 #[ inline]
144147 pub fn prepend_from_slice ( & mut self , slice : impl AsRef < [ u8 ] > ) {
145148 let slice = slice. as_ref ( ) ;
@@ -152,14 +155,17 @@ impl Nucleotides {
152155 * self = Nucleotides ( new) ;
153156 }
154157
155- /// Pads the end or 3' end of the [`Nucleotides`] by `base` for `count` times.
158+ /// Pads the end or 3' end of the [`Nucleotides`] by `base` for `count`
159+ /// times.
156160 #[ inline]
157161 pub fn pad_end ( & mut self , base : u8 , count : usize ) {
158162 self . 0 . extend ( std:: iter:: repeat_n ( base, count) ) ;
159163 }
160164
161165 /// Pads the start or 5' end of the [`Nucleotides`] by `base` for `count`
162- /// times. This method always allocates.
166+ /// times.
167+ ///
168+ /// This method allocates.
163169 #[ inline]
164170 pub fn pad_start ( & mut self , base : u8 , count : usize ) {
165171 if count == 0 {
@@ -172,8 +178,9 @@ impl Nucleotides {
172178 }
173179
174180 /// Pads the [`Nucleotides`] on both flanking sides by `base` for
175- /// `amount_before` and `amount_after` respectively. This method always
176- /// allocates.
181+ /// `amount_before` and `amount_after` respectively.
182+ ///
183+ /// This method allocates.
177184 #[ inline]
178185 pub fn pad_both_sides ( & mut self , base : u8 , amount_before : usize , amount_after : usize ) {
179186 if amount_before == 0 && amount_after == 0 {
0 commit comments