1
Fork 0

Make Bound::cloned public

This commit is contained in:
Chris Gregory 2019-05-31 11:36:28 -05:00
parent 867c4a5fda
commit 0772f9a920

View file

@ -709,7 +709,7 @@ impl<T: Clone> Bound<&T> {
/// assert_eq!((1..12).start_bound().cloned(), Included(1));
/// ```
#[unstable(feature = "bound_cloned", issue = "61356")]
fn cloned(&self) -> Bound<T> {
pub fn cloned(&self) -> Bound<T> {
match *self {
Bound::Unbounded => Bound::Unbounded,
Bound::Included(x) => Bound::Included(x.clone()),