| // Copyright 2015 The Vanadium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file. |
| // This file was auto-generated via go generate. |
| // DO NOT UPDATE MANUALLY |
| // FromSlice transforms the given slice to a set. |
| func (Uint32T) FromSlice(els []uint32) map[uint32]struct{} { |
| result := map[uint32]struct{}{} |
| // ToSlice transforms the given set to a slice. |
| func (Uint32T) ToSlice(s map[uint32]struct{}) []uint32 { |
| result = append(result, el) |
| // Difference subtracts s2 from s1, storing the result in s1. |
| func (Uint32T) Difference(s1, s2 map[uint32]struct{}) { |
| // Intersection intersects s1 and s2, storing the result in s1. |
| func (Uint32T) Intersection(s1, s2 map[uint32]struct{}) { |
| if _, ok := s2[el]; !ok { |
| // Union merges s1 and s2, storing the result in s1. |
| func (Uint32T) Union(s1, s2 map[uint32]struct{}) { |