pub enum TransformArgument {
    Single(Transform),
    Many(Vec<Transform>),
}
Expand description

A TransformArgument is a transform that should be applied to the invocation of a Rule.

See the From and Into implementations which produce this type to find out what kind of argument each type becomes.

Variants

Single(Transform)

A single transform that corresponds to one invocation with the given transform.

Many(Vec<Transform>)

An arbitrary number of transforms (e.g. from Replicate) that correspond to one invocation each.

Trait Implementations

Formats the value using the given formatter. Read more

A slice of transforms will be sequentially composed into a single transform and correspond to one invocation.

Converts to this type from the input type.

An optional transform will of course correspond to one invocation. This implementation also allows you to pass None to invoke rules unmodified.

Converts to this type from the input type.

A single transform will correspond to one invocation.

Converts to this type from the input type.

A vector of replications will be composed sequentially, which means the number of corresponding rule invocations is the product of each replication. A vector with a replication of transform A 36 times then replication of B 10 times will yield transforms for every sequence of A then B (e.g. (A_1, B_1), (A_1, B_2), …, (A_36, B_36)), so 360 total.

Converts to this type from the input type.

A vector of transforms will be sequentially composed into a single transform and correspond to one invocation.

Converts to this type from the input type.
Converts to this type from the input type.

The replication will become n transforms, corresponding to one invocation each.

Converts this type into the (usually inferred) input type.
Converts this type into the (usually inferred) input type.

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
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

Should always be Self
The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Checks if self is actually part of its subset T (and can be converted to it).
Use with care! Same as self.to_subset but without any property checks. Always succeeds.
The inclusion map: converts self to the equivalent element of its superset.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.