Make Bound::cloned public
This commit is contained in:
parent
867c4a5fda
commit
0772f9a920
1 changed files with 1 additions and 1 deletions
|
@ -709,7 +709,7 @@ impl<T: Clone> Bound<&T> {
|
||||||
/// assert_eq!((1..12).start_bound().cloned(), Included(1));
|
/// assert_eq!((1..12).start_bound().cloned(), Included(1));
|
||||||
/// ```
|
/// ```
|
||||||
#[unstable(feature = "bound_cloned", issue = "61356")]
|
#[unstable(feature = "bound_cloned", issue = "61356")]
|
||||||
fn cloned(&self) -> Bound<T> {
|
pub fn cloned(&self) -> Bound<T> {
|
||||||
match *self {
|
match *self {
|
||||||
Bound::Unbounded => Bound::Unbounded,
|
Bound::Unbounded => Bound::Unbounded,
|
||||||
Bound::Included(x) => Bound::Included(x.clone()),
|
Bound::Included(x) => Bound::Included(x.clone()),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue