Skip to content

Commit cd4eb4c

Browse files
committed
Document + ?Sized in a few more places
1 parent a3b3537 commit cd4eb4c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,7 +1353,7 @@ impl<A, D> ArrayPartsSized<A, D>
13531353
/// use ndarray::{LayoutRef2, array};
13541354
///
13551355
/// fn aspect_ratio<T, A>(layout: &T) -> (usize, usize)
1356-
/// where T: AsRef<LayoutRef2<A>>
1356+
/// where T: AsRef<LayoutRef2<A>> + ?Sized
13571357
/// {
13581358
/// let layout = layout.as_ref();
13591359
/// (layout.ncols(), layout.nrows())
@@ -1373,14 +1373,14 @@ impl<A, D> ArrayPartsSized<A, D>
13731373
///
13741374
/// trait Ratioable<A> {
13751375
/// fn aspect_ratio(&self) -> (usize, usize)
1376-
/// where Self: AsRef<LayoutRef2<A>>;
1376+
/// where Self: AsRef<LayoutRef2<A>> + ?Sized;
13771377
///
13781378
/// fn cut_to_ratio(&mut self, ratio: (usize, usize))
1379-
/// where Self: AsMut<LayoutRef2<A>>;
1379+
/// where Self: AsMut<LayoutRef2<A>> + ?Sized;
13801380
/// }
13811381
///
13821382
/// impl<T, A> Ratioable<A> for T
1383-
/// where T: AsRef<LayoutRef2<A>> + AsMut<LayoutRef2<A>>
1383+
/// where T: AsRef<LayoutRef2<A>> + AsMut<LayoutRef2<A>> + ?Sized
13841384
/// {
13851385
/// fn aspect_ratio(&self) -> (usize, usize)
13861386
/// {

0 commit comments

Comments
 (0)