pub enum Puzzle {
Curried(CurriedPuzzle),
Raw(RawPuzzle),
}
Variants§
Curried(CurriedPuzzle)
Raw(RawPuzzle)
Implementations§
Source§impl Puzzle
impl Puzzle
pub fn parse(allocator: &Allocator, puzzle: NodePtr) -> Self
pub fn curried_puzzle_hash(&self) -> TreeHash
pub fn mod_hash(&self) -> TreeHash
pub fn ptr(&self) -> NodePtr
pub fn is_curried(&self) -> bool
pub fn is_raw(&self) -> bool
pub fn as_curried(&self) -> Option<CurriedPuzzle>
pub fn as_raw(&self) -> Option<RawPuzzle>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Puzzle
impl RefUnwindSafe for Puzzle
impl Send for Puzzle
impl Sync for Puzzle
impl Unpin for Puzzle
impl UnwindSafe for Puzzle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more