@@ -193,23 +193,23 @@ pub trait SoAIndex<T>: private_soa_indexs::Sealed {
193
193
/// The output for the non-mutable functions
194
194
type RefOutput ;
195
195
196
- /// Returns the reference output in this location if in bounds. None otherwise.
196
+ /// Returns the reference output in this location if in bounds, ` None` otherwise.
197
197
fn get ( self , soa : T ) -> Option < Self :: RefOutput > ;
198
- /// Returns the reference output in this location withotu performing any bounds check.
198
+ /// Returns the reference output in this location without performing any bounds check.
199
199
unsafe fn get_unchecked ( self , soa : T ) -> Self :: RefOutput ;
200
200
/// Returns the reference output in this location. Panics if it is not in bounds.
201
201
fn index ( self , soa : T ) -> Self :: RefOutput ;
202
202
}
203
203
204
- /// Helper trait used for indexing operations returning mutable.
204
+ /// Helper trait used for indexing operations returning mutable references .
205
205
/// Inspired by [`std::slice::SliceIndex`](https://doc.rust-lang.org/std/slice/trait.SliceIndex.html).
206
206
pub trait SoAIndexMut < T > : private_soa_indexs:: Sealed {
207
207
/// The output for the mutable functions
208
208
type MutOutput ;
209
209
210
- /// Returns the mutable reference output in this location if in bounds. None otherwise.
210
+ /// Returns the mutable reference output in this location if in bounds, ` None` otherwise.
211
211
fn get_mut ( self , soa : T ) -> Option < Self :: MutOutput > ;
212
- /// Returns the mutable reference output in this location withotu performing any bounds check.
212
+ /// Returns the mutable reference output in this location without performing any bounds check.
213
213
unsafe fn get_unchecked_mut ( self , soa : T ) -> Self :: MutOutput ;
214
214
/// Returns the mutable reference output in this location. Panics if it is not in bounds.
215
215
fn index_mut ( self , soa : T ) -> Self :: MutOutput ;
0 commit comments