Class HashSetExtensions | Collections | 0.15.0-preview.21
docs.unity.cn
    Show / Hide Table of Contents

    Class HashSetExtensions

    Inheritance
    Object
    HashSetExtensions
    Namespace: Unity.Collections
    Syntax
    public static class HashSetExtensions

    Methods

    ExceptWith<T>(NativeHashSet<T>, FixedList128<T>)

    Modifies this container to remove all values that are present in the other container.

    Declaration
    public static void ExceptWith<T>(this NativeHashSet<T> container, FixedList128<T> other)
        where T : struct, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    Container to modify.

    FixedList128<T> other

    The container to compare to this container.

    Type Parameters
    Name Description
    T

    Source type of elements

    ExceptWith<T>(NativeHashSet<T>, FixedList32<T>)

    Modifies this container to remove all values that are present in the other container.

    Declaration
    public static void ExceptWith<T>(this NativeHashSet<T> container, FixedList32<T> other)
        where T : struct, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    Container to modify.

    FixedList32<T> other

    The container to compare to this container.

    Type Parameters
    Name Description
    T

    Source type of elements

    ExceptWith<T>(NativeHashSet<T>, FixedList4096<T>)

    Modifies this container to remove all values that are present in the other container.

    Declaration
    public static void ExceptWith<T>(this NativeHashSet<T> container, FixedList4096<T> other)
        where T : struct, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    Container to modify.

    FixedList4096<T> other

    The container to compare to this container.

    Type Parameters
    Name Description
    T

    Source type of elements

    ExceptWith<T>(NativeHashSet<T>, FixedList512<T>)

    Modifies this container to remove all values that are present in the other container.

    Declaration
    public static void ExceptWith<T>(this NativeHashSet<T> container, FixedList512<T> other)
        where T : struct, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    Container to modify.

    FixedList512<T> other

    The container to compare to this container.

    Type Parameters
    Name Description
    T

    Source type of elements

    ExceptWith<T>(NativeHashSet<T>, FixedList64<T>)

    Modifies this container to remove all values that are present in the other container.

    Declaration
    public static void ExceptWith<T>(this NativeHashSet<T> container, FixedList64<T> other)
        where T : struct, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    Container to modify.

    FixedList64<T> other

    The container to compare to this container.

    Type Parameters
    Name Description
    T

    Source type of elements

    ExceptWith<T>(NativeHashSet<T>, NativeArray<T>)

    Modifies this container to remove all values that are present in the other container.

    Declaration
    public static void ExceptWith<T>(this NativeHashSet<T> container, NativeArray<T> other)
        where T : struct, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    Container to modify.

    NativeArray<T> other

    The container to compare to this container.

    Type Parameters
    Name Description
    T

    Source type of elements

    ExceptWith<T>(NativeHashSet<T>, NativeHashSet<T>)

    Modifies this container to remove all values that are present in the other container.

    Declaration
    public static void ExceptWith<T>(this NativeHashSet<T> container, NativeHashSet<T> other)
        where T : struct, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    Container to modify.

    NativeHashSet<T> other

    The container to compare to this container.

    Type Parameters
    Name Description
    T

    Source type of elements

    ExceptWith<T>(NativeHashSet<T>, NativeList<T>)

    Modifies this container to remove all values that are present in the other container.

    Declaration
    public static void ExceptWith<T>(this NativeHashSet<T> container, NativeList<T> other)
        where T : struct, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    Container to modify.

    NativeList<T> other

    The container to compare to this container.

    Type Parameters
    Name Description
    T

    Source type of elements

    IntersectWith<T>(NativeHashSet<T>, FixedList128<T>)

    Modifies this container to keep only values that are present in both containers.

    Declaration
    public static void IntersectWith<T>(this NativeHashSet<T> container, FixedList128<T> other)
        where T : struct, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    Container to modify.

    FixedList128<T> other

    The container to compare to this container.

    Type Parameters
    Name Description
    T

    Source type of elements

    IntersectWith<T>(NativeHashSet<T>, FixedList32<T>)

    Modifies this container to keep only values that are present in both containers.

    Declaration
    public static void IntersectWith<T>(this NativeHashSet<T> container, FixedList32<T> other)
        where T : struct, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    Container to modify.

    FixedList32<T> other

    The container to compare to this container.

    Type Parameters
    Name Description
    T

    Source type of elements

    IntersectWith<T>(NativeHashSet<T>, FixedList4096<T>)

    Modifies this container to keep only values that are present in both containers.

    Declaration
    public static void IntersectWith<T>(this NativeHashSet<T> container, FixedList4096<T> other)
        where T : struct, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    Container to modify.

    FixedList4096<T> other

    The container to compare to this container.

    Type Parameters
    Name Description
    T

    Source type of elements

    IntersectWith<T>(NativeHashSet<T>, FixedList512<T>)

    Modifies this container to keep only values that are present in both containers.

    Declaration
    public static void IntersectWith<T>(this NativeHashSet<T> container, FixedList512<T> other)
        where T : struct, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    Container to modify.

    FixedList512<T> other

    The container to compare to this container.

    Type Parameters
    Name Description
    T

    Source type of elements

    IntersectWith<T>(NativeHashSet<T>, FixedList64<T>)

    Modifies this container to keep only values that are present in both containers.

    Declaration
    public static void IntersectWith<T>(this NativeHashSet<T> container, FixedList64<T> other)
        where T : struct, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    Container to modify.

    FixedList64<T> other

    The container to compare to this container.

    Type Parameters
    Name Description
    T

    Source type of elements

    IntersectWith<T>(NativeHashSet<T>, NativeArray<T>)

    Modifies this container to keep only values that are present in both containers.

    Declaration
    public static void IntersectWith<T>(this NativeHashSet<T> container, NativeArray<T> other)
        where T : struct, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    Container to modify.

    NativeArray<T> other

    The container to compare to this container.

    Type Parameters
    Name Description
    T

    Source type of elements

    IntersectWith<T>(NativeHashSet<T>, NativeHashSet<T>)

    Modifies this container to keep only values that are present in both containers.

    Declaration
    public static void IntersectWith<T>(this NativeHashSet<T> container, NativeHashSet<T> other)
        where T : struct, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    Container to modify.

    NativeHashSet<T> other

    The container to compare to this container.

    Type Parameters
    Name Description
    T

    Source type of elements

    IntersectWith<T>(NativeHashSet<T>, NativeList<T>)

    Modifies this container to keep only values that are present in both containers.

    Declaration
    public static void IntersectWith<T>(this NativeHashSet<T> container, NativeList<T> other)
        where T : struct, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    Container to modify.

    NativeList<T> other

    The container to compare to this container.

    Type Parameters
    Name Description
    T

    Source type of elements

    UnionWith<T>(NativeHashSet<T>, FixedList128<T>)

    Modifies this container to contain values from both containers.

    Declaration
    public static void UnionWith<T>(this NativeHashSet<T> container, FixedList128<T> other)
        where T : struct, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    Container to modify.

    FixedList128<T> other

    The container to compare to this container.

    Type Parameters
    Name Description
    T

    Source type of elements

    UnionWith<T>(NativeHashSet<T>, FixedList32<T>)

    Modifies this container to contain values from both containers.

    Declaration
    public static void UnionWith<T>(this NativeHashSet<T> container, FixedList32<T> other)
        where T : struct, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    Container to modify.

    FixedList32<T> other

    The container to compare to this container.

    Type Parameters
    Name Description
    T

    Source type of elements

    UnionWith<T>(NativeHashSet<T>, FixedList4096<T>)

    Modifies this container to contain values from both containers.

    Declaration
    public static void UnionWith<T>(this NativeHashSet<T> container, FixedList4096<T> other)
        where T : struct, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    Container to modify.

    FixedList4096<T> other

    The container to compare to this container.

    Type Parameters
    Name Description
    T

    Source type of elements

    UnionWith<T>(NativeHashSet<T>, FixedList512<T>)

    Modifies this container to contain values from both containers.

    Declaration
    public static void UnionWith<T>(this NativeHashSet<T> container, FixedList512<T> other)
        where T : struct, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    Container to modify.

    FixedList512<T> other

    The container to compare to this container.

    Type Parameters
    Name Description
    T

    Source type of elements

    UnionWith<T>(NativeHashSet<T>, FixedList64<T>)

    Modifies this container to contain values from both containers.

    Declaration
    public static void UnionWith<T>(this NativeHashSet<T> container, FixedList64<T> other)
        where T : struct, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    Container to modify.

    FixedList64<T> other

    The container to compare to this container.

    Type Parameters
    Name Description
    T

    Source type of elements

    UnionWith<T>(NativeHashSet<T>, NativeArray<T>)

    Modifies this container to contain values from both containers.

    Declaration
    public static void UnionWith<T>(this NativeHashSet<T> container, NativeArray<T> other)
        where T : struct, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    Container to modify.

    NativeArray<T> other

    The container to compare to this container.

    Type Parameters
    Name Description
    T

    Source type of elements

    UnionWith<T>(NativeHashSet<T>, NativeHashSet<T>)

    Modifies this container to contain values from both containers.

    Declaration
    public static void UnionWith<T>(this NativeHashSet<T> container, NativeHashSet<T> other)
        where T : struct, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    Container to modify.

    NativeHashSet<T> other

    The container to compare to this container.

    Type Parameters
    Name Description
    T

    Source type of elements

    UnionWith<T>(NativeHashSet<T>, NativeList<T>)

    Modifies this container to contain values from both containers.

    Declaration
    public static void UnionWith<T>(this NativeHashSet<T> container, NativeList<T> other)
        where T : struct, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    Container to modify.

    NativeList<T> other

    The container to compare to this container.

    Type Parameters
    Name Description
    T

    Source type of elements

    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Saturday, January 23, 2021