collections: Convert statics to constants
This commit is contained in:
parent
34d66de52a
commit
abb3d3e444
1 changed files with 4 additions and 4 deletions
|
@ -34,10 +34,10 @@ use slice::{Items, MutItems};
|
|||
use slice;
|
||||
|
||||
// FIXME: #5244: need to manually update the TrieNode constructor
|
||||
static SHIFT: uint = 4;
|
||||
static SIZE: uint = 1 << SHIFT;
|
||||
static MASK: uint = SIZE - 1;
|
||||
static NUM_CHUNKS: uint = uint::BITS / SHIFT;
|
||||
const SHIFT: uint = 4;
|
||||
const SIZE: uint = 1 << SHIFT;
|
||||
const MASK: uint = SIZE - 1;
|
||||
const NUM_CHUNKS: uint = uint::BITS / SHIFT;
|
||||
|
||||
#[deriving(Clone)]
|
||||
enum Child<T> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue