pub struct Filters { /* private fields */ }
Expand description

A list of filters.

Aggregates the following:

  • a “catch all” FilterSpec, the specification for the points that no filter catches;
  • a “everything” FilterSpec, the specification for all the points, regardless of user-defined filters;
  • a list of Filters;
  • a memory from allocation UIDs to filter UIDs that tells which filter takes care of some allocation.

The point of the memory is that it is not possible to know which filter takes care of a given allocation after the first time we saw that allocation. Which we want to know when registering the death of an allocation. The reason we don’t know is that new filters might have been introduced or some filters may have changed. Hence the filter assigned for this allocation a while ago may not be the one we would assign now.

Implementations

Constructor.

Constructor.

Specification of the catch_all filter.

Specification of the everything filter.

Specifications of the custom filters.

Runs filter generation.

Returns the number of filter generated.

Length of the list of filters.

Filter specification mutable accessor.

Filter mutable accessor.

  • returns the index of the filter and the filter itself;
  • fails if the filter UID is unknown.

Iterator over the filters.

Mutable iterator over the filters.

Searches for a filter that matches on the input allocation.

Searches for a filter that matches on the input allocation, for its death.

Resets all the filters.

Fold over all the filter UIDs.

Generates a UID map.

Applies a filter message.

Sends all the filters to the client.

Updates all the filters.

Adds a new filter.

Adds a new sub-filter.

Extract filter statistics.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Convert the source color to the destination color using the specified method Read more

Convert the source color to the destination color using the bradford method by default Read more

Gets the TypeId of self. Read more

The error type produced by a failed conversion.

Convert the given value into an approximately equivalent representation.

The error type produced by a failed conversion.

Convert the subject into an approximately equivalent representation.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Approximate the subject with the default scheme.

Approximate the subject with a specific scheme.

Approximate the subject to a given type with the default scheme.

Approximate the subject to a given type with a specific scheme.

Convert the subject to a given type.

Attempt to convert the subject to a given type.

Attempt a value conversion of the subject to a given type.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Convert into T with values clamped to the color defined bounds Read more

Convert into T. The resulting color might be invalid in its color space Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The error type produced by a failed conversion.

Convert the given value into the subject type.

The type returned in the event of a conversion error.

Performs the conversion.

The error type produced by a failed conversion.

Convert the subject into the destination type.

The type returned in the event of a conversion error.

Performs the conversion.

Convert into T, returning ok if the color is inside of its defined range, otherwise an OutOfBounds error is returned which contains the unclamped color. Read more

The error type produced by a failed conversion.

Convert the given value into an exactly equivalent representation.

The error type produced by a failed conversion.

Convert the subject into an exactly equivalent representation.