UnionWith
Adds all distinct values from the other collection to this set. Does not throw if a value is already in this set.
Read time 8 minutesLast updated 12 days ago
Definition
- Type: Method
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
UnionWith<T>(NativeHashSet<T>, FixedList128Bytes<T>)
Adds all distinct values from the other collection to this set. Does not throw if a value is already in this set.
public static void UnionWith<T>(this ref NativeHashSet<T> container, FixedList128Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
The set to add values to.
The collection to copy values from.
UnionWith<T>(NativeHashSet<T>, FixedList32Bytes<T>)
Adds all distinct values from the other collection to this set. Does not throw if a value is already in this set.
public static void UnionWith<T>(this ref NativeHashSet<T> container, FixedList32Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
The set to add values to.
The collection to copy values from.
UnionWith<T>(NativeHashSet<T>, FixedList4096Bytes<T>)
Adds all distinct values from the other collection to this set. Does not throw if a value is already in this set.
public static void UnionWith<T>(this ref NativeHashSet<T> container, FixedList4096Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
The set to add values to.
The collection to copy values from.
UnionWith<T>(NativeHashSet<T>, FixedList512Bytes<T>)
Adds all distinct values from the other collection to this set. Does not throw if a value is already in this set.
public static void UnionWith<T>(this ref NativeHashSet<T> container, FixedList512Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
The set to add values to.
The collection to copy values from.
UnionWith<T>(NativeHashSet<T>, FixedList64Bytes<T>)
Adds all distinct values from the other collection to this set. Does not throw if a value is already in this set.
public static void UnionWith<T>(this ref NativeHashSet<T> container, FixedList64Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
The set to add values to.
The collection to copy values from.
UnionWith<T>(NativeHashSet<T>, NativeArray<T>)
Adds all distinct values from the other collection to this set. Does not throw if a value is already in this set.
public static void UnionWith<T>(this ref NativeHashSet<T> container, NativeArray<T> other) where T : unmanaged, IEquatable<T>
Parameters
The set to add values to.
The collection to copy values from.
UnionWith<T>(NativeHashSet<T>, NativeHashSet<T>)
Adds all distinct values from the other collection to this set. Does not throw if a value is already in this set.
public static void UnionWith<T>(this ref NativeHashSet<T> container, NativeHashSet<T> other) where T : unmanaged, IEquatable<T>
Parameters
The set to add values to.
The collection to copy values from.
UnionWith<T>(NativeHashSet<T>, ReadOnly)
Adds all distinct values from the other collection to this set. Does not throw if a value is already in this set.
public static void UnionWith<T>(this ref NativeHashSet<T> container, NativeHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
Parameters
UnionWith<T>(NativeHashSet<T>, NativeParallelHashSet<T>)
Adds all distinct values from the other collection to this set. Does not throw if a value is already in this set.
public static void UnionWith<T>(this ref NativeHashSet<T> container, NativeParallelHashSet<T> other) where T : unmanaged, IEquatable<T>
Parameters
The set to add values to.
The collection to copy values from.
UnionWith<T>(NativeHashSet<T>, ReadOnly)
Adds all distinct values from the other collection to this set. Does not throw if a value is already in this set.
public static void UnionWith<T>(this ref NativeHashSet<T> container, NativeParallelHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
Parameters
UnionWith<T>(NativeHashSet<T>, NativeList<T>)
Adds all distinct values from the other collection to this set. Does not throw if a value is already in this set.
public static void UnionWith<T>(this ref NativeHashSet<T> container, NativeList<T> other) where T : unmanaged, IEquatable<T>
Parameters
The set to add values to.
The collection to copy values from.
UnionWith<T>(NativeParallelHashSet<T>, FixedList128Bytes<T>)
Adds all distinct values from the other collection to this set. Does not throw if a value is already in this set.
public static void UnionWith<T>(this ref NativeParallelHashSet<T> container, FixedList128Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
The set to add values to.
The collection to copy values from.
UnionWith<T>(NativeParallelHashSet<T>, FixedList32Bytes<T>)
Adds all distinct values from the other collection to this set. Does not throw if a value is already in this set.
public static void UnionWith<T>(this ref NativeParallelHashSet<T> container, FixedList32Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
The set to add values to.
The collection to copy values from.
UnionWith<T>(NativeParallelHashSet<T>, FixedList4096Bytes<T>)
Adds all distinct values from the other collection to this set. Does not throw if a value is already in this set.
public static void UnionWith<T>(this ref NativeParallelHashSet<T> container, FixedList4096Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
The set to add values to.
The collection to copy values from.
UnionWith<T>(NativeParallelHashSet<T>, FixedList512Bytes<T>)
Adds all distinct values from the other collection to this set. Does not throw if a value is already in this set.
public static void UnionWith<T>(this ref NativeParallelHashSet<T> container, FixedList512Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
The set to add values to.
The collection to copy values from.
UnionWith<T>(NativeParallelHashSet<T>, FixedList64Bytes<T>)
Adds all distinct values from the other collection to this set. Does not throw if a value is already in this set.
public static void UnionWith<T>(this ref NativeParallelHashSet<T> container, FixedList64Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
The set to add values to.
The collection to copy values from.
UnionWith<T>(NativeParallelHashSet<T>, NativeArray<T>)
Adds all distinct values from the other collection to this set. Does not throw if a value is already in this set.
public static void UnionWith<T>(this ref NativeParallelHashSet<T> container, NativeArray<T> other) where T : unmanaged, IEquatable<T>
Parameters
The set to add values to.
The collection to copy values from.
UnionWith<T>(NativeParallelHashSet<T>, NativeHashSet<T>)
Adds all distinct values from the other collection to this set. Does not throw if a value is already in this set.
public static void UnionWith<T>(this ref NativeParallelHashSet<T> container, NativeHashSet<T> other) where T : unmanaged, IEquatable<T>
Parameters
The set to add values to.
The collection to copy values from.
UnionWith<T>(NativeParallelHashSet<T>, ReadOnly)
Adds all distinct values from the other collection to this set. Does not throw if a value is already in this set.
public static void UnionWith<T>(this ref NativeParallelHashSet<T> container, NativeHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
Parameters
The set to add values to.
The collection to copy values from.
UnionWith<T>(NativeParallelHashSet<T>, NativeParallelHashSet<T>)
Adds all distinct values from the other collection to this set. Does not throw if a value is already in this set.
public static void UnionWith<T>(this ref NativeParallelHashSet<T> container, NativeParallelHashSet<T> other) where T : unmanaged, IEquatable<T>
Parameters
The set to add values to.
The collection to copy values from.
UnionWith<T>(NativeParallelHashSet<T>, ReadOnly)
Adds all distinct values from the other collection to this set. Does not throw if a value is already in this set.
public static void UnionWith<T>(this ref NativeParallelHashSet<T> container, NativeParallelHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
Parameters
The set to add values to.
The collection to copy values from.
UnionWith<T>(NativeParallelHashSet<T>, NativeList<T>)
Adds all distinct values from the other collection to this set. Does not throw if a value is already in this set.
public static void UnionWith<T>(this ref NativeParallelHashSet<T> container, NativeList<T> other) where T : unmanaged, IEquatable<T>
Parameters
The set to add values to.
The collection to copy values from.