code: func (s *State) Equal(other *State) bool {
  	// If one is nil, we do a direct check
  	if s == nil || other == nil {
  		return s == other
  	}
  
  	s.Lock()
  	defer s.Unlock()
  	return s.equal(other)
  }
docs: // Equal tests if one state is equal to another.