Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

Commit

Permalink
Name trait function variables
Browse files Browse the repository at this point in the history
According to depreciation from rust-lang/rfcs#1685
  • Loading branch information
KamilaBorowska committed Oct 8, 2017
1 parent d17db49 commit af6fdee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions enum-map/src/internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ pub trait Internal<V>: Sized {
/// Representation of an enum map for type `V`, usually an array.
type Array;
#[doc(hidden)]
fn slice(&Self::Array) -> &[V];
fn slice(array: &Self::Array) -> &[V];
#[doc(hidden)]
fn slice_mut(&mut Self::Array) -> &mut [V];
fn slice_mut(array: &mut Self::Array) -> &mut [V];
#[doc(hidden)]
fn from_usize(usize) -> Self;
fn from_usize(value: usize) -> Self;
#[doc(hidden)]
fn to_usize(self) -> usize;
#[doc(hidden)]
fn from_function<F: FnMut(Self) -> V>(F) -> Self::Array;
fn from_function<F: FnMut(Self) -> V>(f: F) -> Self::Array;
}

impl<T> Internal<T> for bool {
Expand Down

0 comments on commit af6fdee

Please sign in to comment.