Skip to content

Commit

Permalink
feat!: expose the value of ConstUsize
Browse files Browse the repository at this point in the history
  • Loading branch information
doug-q committed Oct 24, 2023
1 parent 8395129 commit f21031a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/extension/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ impl ConstUsize {
pub fn new(value: u64) -> Self {
Self(value)
}

/// Returns the value of the constant.
pub fn value(&self) -> u64 {
self.0
}
}

#[typetag::serde]
Expand Down

0 comments on commit f21031a

Please sign in to comment.