mention feature gating

This commit is contained in:
geo-ant 2022-11-13 17:23:43 +01:00 committed by Sébastien Crozet
parent 296320bb74
commit 9cc7cc121f
1 changed files with 8 additions and 0 deletions

View File

@ -1,5 +1,9 @@
//! Matrix iterators.
// only enables the `doc_cfg` feature when
// the `docsrs` configuration attribute is defined
#![cfg_attr(docsrs, feature(doc_cfg))]
use core::fmt::Debug;
use core::ops::Range;
use std::iter::FusedIterator;
@ -445,6 +449,8 @@ mod parallel {
use super::*;
use rayon::iter::plumbing::Producer;
#[cfg_attr(doc_cfg, doc(cfg(feature = "par-iter")))]
/// *only available if compiled with the feature `par-iter`*
impl<'a, T, R: Dim, Cols: Dim, S: RawStorage<T, R, Cols>> Producer for ColumnIter<'a, T, R, Cols, S>
where
T: Send + Sync + Scalar,
@ -473,6 +479,8 @@ mod parallel {
}
}
#[cfg_attr(doc_cfg, doc(cfg(feature = "par-iter")))]
/// *only available if compiled with the feature `par-iter`*
impl<'a, T, R: Dim, C: Dim, S: 'a + RawStorageMut<T, R, C>> Producer
for ColumnIterMut<'a, T, R, C, S>
where