Skip to content

Commit

Permalink
make BitVecValue Ord
Browse files Browse the repository at this point in the history
  • Loading branch information
ekiwi committed Oct 23, 2024
1 parent 32c64e3 commit 9e0d8e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "baa"
version = "0.12.5"
version = "0.12.6"
edition = "2021"
authors = ["Kevin Laeufer <[email protected]>"]
description = "BitVector and Array Arithmetic"
Expand Down
3 changes: 2 additions & 1 deletion src/bv/owned.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ use smallvec::{smallvec, SmallVec};
pub(crate) type ValueVec = SmallVec<[Word; 2]>;

/// Owned bit-vector value.
#[derive(Clone, Hash)]
/// Note: Ord does not necessarily order by value.
#[derive(Clone, Hash, Ord, PartialOrd)]
#[cfg_attr(feature = "serde1", derive(serde::Serialize, serde::Deserialize))]
pub struct BitVecValue {
pub(crate) width: WidthInt,
Expand Down

0 comments on commit 9e0d8e7

Please sign in to comment.