Skip to content

Commit

Permalink
feat!: expose the value of ConstUsize (#621)
Browse files Browse the repository at this point in the history
  • Loading branch information
doug-q committed Oct 24, 2023
1 parent 8395129 commit 46d5017
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 46d5017

Please sign in to comment.