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