Skip to content

Commit b9c37dc

Browse files
committed
fix: Export ValueRef
1 parent 211a30f commit b9c37dc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ pub use crate::merkle::{
6666
FailEntropy, HasCmr,
6767
};
6868
pub use crate::node::{CommitNode, ConstructNode, Hiding, RedeemNode, WitnessNode};
69-
pub use crate::value::{Value, Word};
69+
pub use crate::value::{Value, ValueRef, Word};
7070
pub use simplicity_sys as ffi;
7171
use std::fmt;
7272

src/value.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ pub struct Value {
3939

4040
/// Private structure used for iterating over a value in pre-order
4141
#[derive(Debug, Clone)]
42-
struct ValueRef<'v> {
42+
pub struct ValueRef<'v> {
4343
inner: &'v [u8],
4444
bit_offset: usize,
4545
ty: &'v Final,
@@ -419,7 +419,7 @@ impl Value {
419419
}
420420

421421
/// Helper function to convert the value to a reference
422-
fn as_value(&self) -> ValueRef {
422+
pub fn as_value(&self) -> ValueRef {
423423
ValueRef {
424424
inner: self.inner.as_ref(),
425425
bit_offset: self.bit_offset,

0 commit comments

Comments
 (0)