Class HashSetExtensions
Provides extension methods for sets.
Namespace: Unity.Collections.LowLevel.Unsafe
Assembly: Unity.Collections.dll
Syntax
public static class HashSetExtensions
Methods
ExceptWith<T>(UnsafeHashSet<T>, FixedList128Bytes<T>)
Removes the values from this set which are also present in another collection.
Declaration
public static void ExceptWith<T>(this UnsafeHashSet<T> container, FixedList128Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
UnsafeHashSet<T> | container | The set to remove values from. |
FixedList128Bytes<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
ExceptWith<T>(UnsafeHashSet<T>, FixedList32Bytes<T>)
Removes the values from this set which are also present in another collection.
Declaration
public static void ExceptWith<T>(this UnsafeHashSet<T> container, FixedList32Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
UnsafeHashSet<T> | container | The set to remove values from. |
FixedList32Bytes<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
ExceptWith<T>(UnsafeHashSet<T>, FixedList4096Bytes<T>)
Removes the values from this set which are also present in another collection.
Declaration
public static void ExceptWith<T>(this UnsafeHashSet<T> container, FixedList4096Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
UnsafeHashSet<T> | container | The set to remove values from. |
FixedList4096Bytes<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
ExceptWith<T>(UnsafeHashSet<T>, FixedList512Bytes<T>)
Removes the values from this set which are also present in another collection.
Declaration
public static void ExceptWith<T>(this UnsafeHashSet<T> container, FixedList512Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
UnsafeHashSet<T> | container | The set to remove values from. |
FixedList512Bytes<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
ExceptWith<T>(UnsafeHashSet<T>, FixedList64Bytes<T>)
Removes the values from this set which are also present in another collection.
Declaration
public static void ExceptWith<T>(this UnsafeHashSet<T> container, FixedList64Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
UnsafeHashSet<T> | container | The set to remove values from. |
FixedList64Bytes<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
ExceptWith<T>(UnsafeHashSet<T>, UnsafeHashSet<T>)
Removes the values from this set which are also present in another collection.
Declaration
public static void ExceptWith<T>(this UnsafeHashSet<T> container, UnsafeHashSet<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
UnsafeHashSet<T> | container | The set to remove values from. |
UnsafeHashSet<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
ExceptWith<T>(UnsafeHashSet<T>, UnsafeList<T>)
Removes the values from this set which are also present in another collection.
Declaration
public static void ExceptWith<T>(this UnsafeHashSet<T> container, UnsafeList<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
UnsafeHashSet<T> | container | The set to remove values from. |
UnsafeList<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
ExceptWith<T>(UnsafeHashSet<T>, NativeArray<T>)
Removes the values from this set which are also present in another collection.
Declaration
public static void ExceptWith<T>(this UnsafeHashSet<T> container, NativeArray<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
UnsafeHashSet<T> | container | The set to remove values from. |
NativeArray<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
ExceptWith<T>(UnsafeHashSet<T>, NativeHashSet<T>)
Removes the values from this set which are also present in another collection.
Declaration
public static void ExceptWith<T>(this UnsafeHashSet<T> container, NativeHashSet<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
UnsafeHashSet<T> | container | The set to remove values from. |
NativeHashSet<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
ExceptWith<T>(UnsafeHashSet<T>, NativeList<T>)
Removes the values from this set which are also present in another collection.
Declaration
public static void ExceptWith<T>(this UnsafeHashSet<T> container, NativeList<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
UnsafeHashSet<T> | container | The set to remove values from. |
NativeList<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
ExceptWith<T>(NativeHashSet<T>, UnsafeHashSet<T>)
Removes the values from this set which are also present in another collection.
Declaration
public static void ExceptWith<T>(this NativeHashSet<T> container, UnsafeHashSet<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
NativeHashSet<T> | container | The set to remove values from. |
UnsafeHashSet<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
ExceptWith<T>(NativeHashSet<T>, UnsafeList<T>)
Removes the values from this set which are also present in another collection.
Declaration
public static void ExceptWith<T>(this NativeHashSet<T> container, UnsafeList<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
NativeHashSet<T> | container | The set to remove values from. |
UnsafeList<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
IntersectWith<T>(UnsafeHashSet<T>, FixedList128Bytes<T>)
Removes the values from this set which are absent in another collection.
Declaration
public static void IntersectWith<T>(this UnsafeHashSet<T> container, FixedList128Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
UnsafeHashSet<T> | container | The set to remove values from. |
FixedList128Bytes<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
IntersectWith<T>(UnsafeHashSet<T>, FixedList32Bytes<T>)
Removes the values from this set which are absent in another collection.
Declaration
public static void IntersectWith<T>(this UnsafeHashSet<T> container, FixedList32Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
UnsafeHashSet<T> | container | The set to remove values from. |
FixedList32Bytes<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
IntersectWith<T>(UnsafeHashSet<T>, FixedList4096Bytes<T>)
Removes the values from this set which are absent in another collection.
Declaration
public static void IntersectWith<T>(this UnsafeHashSet<T> container, FixedList4096Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
UnsafeHashSet<T> | container | The set to remove values from. |
FixedList4096Bytes<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
IntersectWith<T>(UnsafeHashSet<T>, FixedList512Bytes<T>)
Removes the values from this set which are absent in another collection.
Declaration
public static void IntersectWith<T>(this UnsafeHashSet<T> container, FixedList512Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
UnsafeHashSet<T> | container | The set to remove values from. |
FixedList512Bytes<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
IntersectWith<T>(UnsafeHashSet<T>, FixedList64Bytes<T>)
Removes the values from this set which are absent in another collection.
Declaration
public static void IntersectWith<T>(this UnsafeHashSet<T> container, FixedList64Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
UnsafeHashSet<T> | container | The set to remove values from. |
FixedList64Bytes<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
IntersectWith<T>(UnsafeHashSet<T>, UnsafeHashSet<T>)
Removes the values from this set which are absent in another collection.
Declaration
public static void IntersectWith<T>(this UnsafeHashSet<T> container, UnsafeHashSet<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
UnsafeHashSet<T> | container | The set to remove values from. |
UnsafeHashSet<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
IntersectWith<T>(UnsafeHashSet<T>, UnsafeList<T>)
Removes the values from this set which are absent in another collection.
Declaration
public static void IntersectWith<T>(this UnsafeHashSet<T> container, UnsafeList<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
UnsafeHashSet<T> | container | The set to remove values from. |
UnsafeList<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
IntersectWith<T>(UnsafeHashSet<T>, NativeArray<T>)
Removes the values from this set which are absent in another collection.
Declaration
public static void IntersectWith<T>(this UnsafeHashSet<T> container, NativeArray<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
UnsafeHashSet<T> | container | The set to remove values from. |
NativeArray<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
IntersectWith<T>(UnsafeHashSet<T>, NativeHashSet<T>)
Removes the values from this set which are absent in another collection.
Declaration
public static void IntersectWith<T>(this UnsafeHashSet<T> container, NativeHashSet<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
UnsafeHashSet<T> | container | The set to remove values from. |
NativeHashSet<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
IntersectWith<T>(UnsafeHashSet<T>, NativeList<T>)
Removes the values from this set which are absent in another collection.
Declaration
public static void IntersectWith<T>(this UnsafeHashSet<T> container, NativeList<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
UnsafeHashSet<T> | container | The set to remove values from. |
NativeList<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
IntersectWith<T>(NativeHashSet<T>, UnsafeHashSet<T>)
Removes the values from this set which are absent in another collection.
Declaration
public static void IntersectWith<T>(this NativeHashSet<T> container, UnsafeHashSet<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
NativeHashSet<T> | container | The set to remove values from. |
UnsafeHashSet<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
IntersectWith<T>(NativeHashSet<T>, UnsafeList<T>)
Removes the values from this set which are absent in another collection.
Declaration
public static void IntersectWith<T>(this NativeHashSet<T> container, UnsafeList<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
NativeHashSet<T> | container | The set to remove values from. |
UnsafeList<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
UnionWith<T>(UnsafeHashSet<T>, FixedList128Bytes<T>)
Adds all values from a collection to this set.
Declaration
public static void UnionWith<T>(this UnsafeHashSet<T> container, FixedList128Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
UnsafeHashSet<T> | container | The set to add values to. |
FixedList128Bytes<T> | other | The collection to copy values from. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
UnionWith<T>(UnsafeHashSet<T>, FixedList32Bytes<T>)
Adds all values from a collection to this set.
Declaration
public static void UnionWith<T>(this UnsafeHashSet<T> container, FixedList32Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
UnsafeHashSet<T> | container | The set to add values to. |
FixedList32Bytes<T> | other | The collection to copy values from. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
UnionWith<T>(UnsafeHashSet<T>, FixedList4096Bytes<T>)
Adds all values from a collection to this set.
Declaration
public static void UnionWith<T>(this UnsafeHashSet<T> container, FixedList4096Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
UnsafeHashSet<T> | container | The set to add values to. |
FixedList4096Bytes<T> | other | The collection to copy values from. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
UnionWith<T>(UnsafeHashSet<T>, FixedList512Bytes<T>)
Adds all values from a collection to this set.
Declaration
public static void UnionWith<T>(this UnsafeHashSet<T> container, FixedList512Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
UnsafeHashSet<T> | container | The set to add values to. |
FixedList512Bytes<T> | other | The collection to copy values from. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
UnionWith<T>(UnsafeHashSet<T>, FixedList64Bytes<T>)
Adds all values from a collection to this set.
Declaration
public static void UnionWith<T>(this UnsafeHashSet<T> container, FixedList64Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
UnsafeHashSet<T> | container | The set to add values to. |
FixedList64Bytes<T> | other | The collection to copy values from. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
UnionWith<T>(UnsafeHashSet<T>, UnsafeHashSet<T>)
Adds all values from a collection to this set.
Declaration
public static void UnionWith<T>(this UnsafeHashSet<T> container, UnsafeHashSet<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
UnsafeHashSet<T> | container | The set to add values to. |
UnsafeHashSet<T> | other | The collection to copy values from. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
UnionWith<T>(UnsafeHashSet<T>, UnsafeList<T>)
Adds all values from a collection to this set.
Declaration
public static void UnionWith<T>(this UnsafeHashSet<T> container, UnsafeList<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
UnsafeHashSet<T> | container | The set to add values to. |
UnsafeList<T> | other | The collection to copy values from. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
UnionWith<T>(UnsafeHashSet<T>, NativeArray<T>)
Adds all values from a collection to this set.
Declaration
public static void UnionWith<T>(this UnsafeHashSet<T> container, NativeArray<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
UnsafeHashSet<T> | container | The set to add values to. |
NativeArray<T> | other | The collection to copy values from. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
UnionWith<T>(UnsafeHashSet<T>, NativeHashSet<T>)
Adds all values from a collection to this set.
Declaration
public static void UnionWith<T>(this UnsafeHashSet<T> container, NativeHashSet<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
UnsafeHashSet<T> | container | The set to add values to. |
NativeHashSet<T> | other | The collection to copy values from. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
UnionWith<T>(UnsafeHashSet<T>, NativeList<T>)
Adds all values from a collection to this set.
Declaration
public static void UnionWith<T>(this UnsafeHashSet<T> container, NativeList<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
UnsafeHashSet<T> | container | The set to add values to. |
NativeList<T> | other | The collection to copy values from. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
UnionWith<T>(NativeHashSet<T>, UnsafeHashSet<T>)
Adds all values from a collection to this set.
Declaration
public static void UnionWith<T>(this NativeHashSet<T> container, UnsafeHashSet<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
NativeHashSet<T> | container | The set to add values to. |
UnsafeHashSet<T> | other | The collection to copy values from. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
UnionWith<T>(NativeHashSet<T>, UnsafeList<T>)
Adds all values from a collection to this set.
Declaration
public static void UnionWith<T>(this NativeHashSet<T> container, UnsafeList<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
NativeHashSet<T> | container | The set to add values to. |
UnsafeList<T> | other | The collection to copy values from. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |