mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 16:15:03 +00:00
slice: Add tracking issue for slice_binary_search_by_key
This commit is contained in:
parent
9debf51f4b
commit
1e7ec39fc3
@ -770,7 +770,7 @@ impl<T> [T] {
|
||||
/// let r = s.binary_search_by_key(&1, |&(a,b)| b);
|
||||
/// assert!(match r { Ok(1...4) => true, _ => false, });
|
||||
/// ```
|
||||
#[unstable(feature = "slice_binary_search_by_key", reason = "recently added", issue = "0")]
|
||||
#[unstable(feature = "slice_binary_search_by_key", reason = "recently added", issue = "33018")]
|
||||
#[inline]
|
||||
pub fn binary_search_by_key<B, F>(&self, b: &B, f: F) -> Result<usize, usize>
|
||||
where F: FnMut(&T) -> B,
|
||||
|
@ -158,7 +158,7 @@ pub trait SliceExt {
|
||||
#[stable(feature = "copy_from_slice", since = "1.9.0")]
|
||||
fn copy_from_slice(&mut self, src: &[Self::Item]) where Self::Item: Copy;
|
||||
|
||||
#[unstable(feature = "slice_binary_search_by_key", reason = "recently added", issue = "0")]
|
||||
#[unstable(feature = "slice_binary_search_by_key", reason = "recently added", issue = "33018")]
|
||||
fn binary_search_by_key<B, F>(&self, b: &B, f: F) -> Result<usize, usize>
|
||||
where F: FnMut(&Self::Item) -> B,
|
||||
B: Ord;
|
||||
|
Loading…
Reference in New Issue
Block a user