We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
pop_encodable
1 parent dc92826 commit fb02a05Copy full SHA for fb02a05
tasm-lib/src/lib.rs
@@ -111,7 +111,7 @@ pub fn push_encodable<T: BFieldCodec>(stack: &mut Vec<BFieldElement>, value: &T)
111
/// - the stack does not contain enough elements
112
/// - the top of the stack does not correspond to a [`BFieldCodec`] encoded
113
/// element of type `T`
114
-pub(crate) fn pop_encodable<T: BFieldCodec>(stack: &mut Vec<BFieldElement>) -> T {
+pub fn pop_encodable<T: BFieldCodec>(stack: &mut Vec<BFieldElement>) -> T {
115
let len = T::static_length().unwrap();
116
let limbs = (0..len).map(|_| stack.pop().unwrap()).collect_vec();
117
*T::decode(&limbs).unwrap()
0 commit comments