bump split_inclusive stabilization to 1.51.0
This commit is contained in:
parent
2c1d6557c9
commit
bd2c072b9b
1 changed files with 11 additions and 11 deletions
|
@ -452,7 +452,7 @@ impl<T, P> FusedIterator for Split<'_, T, P> where P: FnMut(&T) -> bool {}
|
||||||
///
|
///
|
||||||
/// [`split_inclusive`]: ../../std/primitive.slice.html#method.split_inclusive
|
/// [`split_inclusive`]: ../../std/primitive.slice.html#method.split_inclusive
|
||||||
/// [slices]: ../../std/primitive.slice.html
|
/// [slices]: ../../std/primitive.slice.html
|
||||||
#[stable(feature = "split_inclusive", since = "1.49.0")]
|
#[stable(feature = "split_inclusive", since = "1.51.0")]
|
||||||
pub struct SplitInclusive<'a, T: 'a, P>
|
pub struct SplitInclusive<'a, T: 'a, P>
|
||||||
where
|
where
|
||||||
P: FnMut(&T) -> bool,
|
P: FnMut(&T) -> bool,
|
||||||
|
@ -469,7 +469,7 @@ impl<'a, T: 'a, P: FnMut(&T) -> bool> SplitInclusive<'a, T, P> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[stable(feature = "split_inclusive", since = "1.49.0")]
|
#[stable(feature = "split_inclusive", since = "1.51.0")]
|
||||||
impl<T: fmt::Debug, P> fmt::Debug for SplitInclusive<'_, T, P>
|
impl<T: fmt::Debug, P> fmt::Debug for SplitInclusive<'_, T, P>
|
||||||
where
|
where
|
||||||
P: FnMut(&T) -> bool,
|
P: FnMut(&T) -> bool,
|
||||||
|
@ -483,7 +483,7 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME(#26925) Remove in favor of `#[derive(Clone)]`
|
// FIXME(#26925) Remove in favor of `#[derive(Clone)]`
|
||||||
#[stable(feature = "split_inclusive", since = "1.49.0")]
|
#[stable(feature = "split_inclusive", since = "1.51.0")]
|
||||||
impl<T, P> Clone for SplitInclusive<'_, T, P>
|
impl<T, P> Clone for SplitInclusive<'_, T, P>
|
||||||
where
|
where
|
||||||
P: Clone + FnMut(&T) -> bool,
|
P: Clone + FnMut(&T) -> bool,
|
||||||
|
@ -493,7 +493,7 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[stable(feature = "split_inclusive", since = "1.49.0")]
|
#[stable(feature = "split_inclusive", since = "1.51.0")]
|
||||||
impl<'a, T, P> Iterator for SplitInclusive<'a, T, P>
|
impl<'a, T, P> Iterator for SplitInclusive<'a, T, P>
|
||||||
where
|
where
|
||||||
P: FnMut(&T) -> bool,
|
P: FnMut(&T) -> bool,
|
||||||
|
@ -522,7 +522,7 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[stable(feature = "split_inclusive", since = "1.49.0")]
|
#[stable(feature = "split_inclusive", since = "1.51.0")]
|
||||||
impl<'a, T, P> DoubleEndedIterator for SplitInclusive<'a, T, P>
|
impl<'a, T, P> DoubleEndedIterator for SplitInclusive<'a, T, P>
|
||||||
where
|
where
|
||||||
P: FnMut(&T) -> bool,
|
P: FnMut(&T) -> bool,
|
||||||
|
@ -547,7 +547,7 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[stable(feature = "split_inclusive", since = "1.49.0")]
|
#[stable(feature = "split_inclusive", since = "1.51.0")]
|
||||||
impl<T, P> FusedIterator for SplitInclusive<'_, T, P> where P: FnMut(&T) -> bool {}
|
impl<T, P> FusedIterator for SplitInclusive<'_, T, P> where P: FnMut(&T) -> bool {}
|
||||||
|
|
||||||
/// An iterator over the mutable subslices of the vector which are separated
|
/// An iterator over the mutable subslices of the vector which are separated
|
||||||
|
@ -693,7 +693,7 @@ impl<T, P> FusedIterator for SplitMut<'_, T, P> where P: FnMut(&T) -> bool {}
|
||||||
///
|
///
|
||||||
/// [`split_inclusive_mut`]: ../../std/primitive.slice.html#method.split_inclusive_mut
|
/// [`split_inclusive_mut`]: ../../std/primitive.slice.html#method.split_inclusive_mut
|
||||||
/// [slices]: ../../std/primitive.slice.html
|
/// [slices]: ../../std/primitive.slice.html
|
||||||
#[stable(feature = "split_inclusive", since = "1.49.0")]
|
#[stable(feature = "split_inclusive", since = "1.51.0")]
|
||||||
pub struct SplitInclusiveMut<'a, T: 'a, P>
|
pub struct SplitInclusiveMut<'a, T: 'a, P>
|
||||||
where
|
where
|
||||||
P: FnMut(&T) -> bool,
|
P: FnMut(&T) -> bool,
|
||||||
|
@ -710,7 +710,7 @@ impl<'a, T: 'a, P: FnMut(&T) -> bool> SplitInclusiveMut<'a, T, P> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[stable(feature = "split_inclusive", since = "1.49.0")]
|
#[stable(feature = "split_inclusive", since = "1.51.0")]
|
||||||
impl<T: fmt::Debug, P> fmt::Debug for SplitInclusiveMut<'_, T, P>
|
impl<T: fmt::Debug, P> fmt::Debug for SplitInclusiveMut<'_, T, P>
|
||||||
where
|
where
|
||||||
P: FnMut(&T) -> bool,
|
P: FnMut(&T) -> bool,
|
||||||
|
@ -723,7 +723,7 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[stable(feature = "split_inclusive", since = "1.49.0")]
|
#[stable(feature = "split_inclusive", since = "1.51.0")]
|
||||||
impl<'a, T, P> Iterator for SplitInclusiveMut<'a, T, P>
|
impl<'a, T, P> Iterator for SplitInclusiveMut<'a, T, P>
|
||||||
where
|
where
|
||||||
P: FnMut(&T) -> bool,
|
P: FnMut(&T) -> bool,
|
||||||
|
@ -763,7 +763,7 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[stable(feature = "split_inclusive", since = "1.49.0")]
|
#[stable(feature = "split_inclusive", since = "1.51.0")]
|
||||||
impl<'a, T, P> DoubleEndedIterator for SplitInclusiveMut<'a, T, P>
|
impl<'a, T, P> DoubleEndedIterator for SplitInclusiveMut<'a, T, P>
|
||||||
where
|
where
|
||||||
P: FnMut(&T) -> bool,
|
P: FnMut(&T) -> bool,
|
||||||
|
@ -797,7 +797,7 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[stable(feature = "split_inclusive", since = "1.49.0")]
|
#[stable(feature = "split_inclusive", since = "1.51.0")]
|
||||||
impl<T, P> FusedIterator for SplitInclusiveMut<'_, T, P> where P: FnMut(&T) -> bool {}
|
impl<T, P> FusedIterator for SplitInclusiveMut<'_, T, P> where P: FnMut(&T) -> bool {}
|
||||||
|
|
||||||
/// An iterator over subslices separated by elements that match a predicate
|
/// An iterator over subslices separated by elements that match a predicate
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue