Added a copy method to state

This commit is contained in:
obscuren 2014-03-17 11:15:09 +01:00
parent 2b9b02812e
commit 826c827e6b

View File

@ -112,6 +112,10 @@ func (s *State) Cmp(other *State) bool {
return s.trie.Cmp(other.trie)
}
func (s *State) Copy() *State {
return NewState(s.trie.Copy())
}
type ObjType byte
const (