Interface ITrimmable<T>
Interface for data structures that can be trimmed.
Namespace: System.Memory
Assembly: Nuqleon.Memory.dll
Syntax
public interface ITrimmable<out T>
Type Parameters
Name | Description |
---|---|
T | The type of the elements held by the data structure. |
Methods
Trim(Func<T, Boolean>)
Trims the data structure by examining its elements.
Declaration
int Trim(Func<T, bool> shouldTrim)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T, System.Boolean> | shouldTrim | Function to determine whether an element should be trimmed. |
Returns
Type | Description |
---|---|
System.Int32 | The number of elements that were trimmed. |