Merge pull request #16 from angelybo/comapre-attr
Derive PartialOrd for AttrValue so we can compare them directly
This commit is contained in:
commit
89d973725a
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ bitflags! {
|
||||||
* - instead of arrays, can use linked-lists to conserve space and avoid the internal fragmentation
|
* - instead of arrays, can use linked-lists to conserve space and avoid the internal fragmentation
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#[derive(PartialEq, Clone)]
|
#[derive(PartialEq, PartialOrd, Clone)]
|
||||||
pub enum AttrValue {
|
pub enum AttrValue {
|
||||||
Int64(i64),
|
Int64(i64),
|
||||||
Uint8(u8),
|
Uint8(u8),
|
||||||
|
|
Loading…
Add table
Reference in a new issue