pop_encodable

Function pop_encodable 

Source
pub fn pop_encodable<T: BFieldCodec>(stack: &mut Vec<BFieldElement>) -> T
Expand description

Pops an element of the specified, generic type from the stack.

ยงPanics

Panics if

  • the generic type has dynamic length
  • the stack does not contain enough elements
  • the top of the stack does not correspond to a BFieldCodec encoded element of type T