Enum immense::TransformArgument
source · Expand description
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
sourceimpl Debug for TransformArgument
impl Debug for TransformArgument
sourceimpl From<&[Transform]> for TransformArgument
impl From<&[Transform]> for TransformArgument
A slice of transforms will be sequentially composed into a single transform and correspond to one invocation.
sourceimpl From<Option<Transform>> for TransformArgument
impl From<Option<Transform>> for TransformArgument
An optional transform will of course correspond to one invocation. This implementation also allows you to pass None to invoke rules unmodified.
sourceimpl From<Transform> for TransformArgument
impl From<Transform> for TransformArgument
A single transform will correspond to one invocation.
sourceimpl From<Vec<Replicate, Global>> for TransformArgument
impl From<Vec<Replicate, Global>> for TransformArgument
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.
sourcefn from(replications: Vec<Replicate>) -> TransformArgument
fn from(replications: Vec<Replicate>) -> TransformArgument
sourceimpl From<Vec<Transform, Global>> for TransformArgument
impl From<Vec<Transform, Global>> for TransformArgument
A vector of transforms will be sequentially composed into a single transform and correspond to one invocation.
sourceimpl From<Vec<TransformArgument, Global>> for TransformArgument
impl From<Vec<TransformArgument, Global>> for TransformArgument
sourcefn from(args: Vec<TransformArgument>) -> Self
fn from(args: Vec<TransformArgument>) -> Self
sourceimpl Into<TransformArgument> for Replicate
impl Into<TransformArgument> for Replicate
The replication will become n
transforms, corresponding to one invocation each.
sourcefn into(self) -> TransformArgument
fn into(self) -> TransformArgument
Auto Trait Implementations
impl RefUnwindSafe for TransformArgument
impl Send for TransformArgument
impl Sync for TransformArgument
impl Unpin for TransformArgument
impl UnwindSafe for TransformArgument
Blanket Implementations
sourceimpl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Component + Float,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Component + Float,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
sourcefn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
sourcefn adapt_into(self) -> D
fn adapt_into(self) -> D
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read morefn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.