pub enum TransformArgument {
Single(Transform),
Many(Vec<Transform>),
}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§
Source§impl Debug for TransformArgument
impl Debug for TransformArgument
Source§impl From<&[Transform]> for TransformArgument
A slice of transforms will be sequentially composed into a single transform and correspond to
one invocation.
impl From<&[Transform]> for TransformArgument
A slice of transforms will be sequentially composed into a single transform and correspond to one invocation.
Source§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.
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.
Source§impl From<Transform> for TransformArgument
A single transform will correspond to one invocation.
impl From<Transform> for TransformArgument
A single transform will correspond to one invocation.
Source§impl From<Vec<Replicate>> 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.
impl From<Vec<Replicate>> 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.
Source§impl From<Vec<Transform>> for TransformArgument
A vector of transforms will be sequentially composed into a single transform and correspond to
one invocation.
impl From<Vec<Transform>> for TransformArgument
A vector of transforms will be sequentially composed into a single transform and correspond to one invocation.
Source§impl From<Vec<TransformArgument>> for TransformArgument
impl From<Vec<TransformArgument>> for TransformArgument
Source§fn from(args: Vec<TransformArgument>) -> Self
fn from(args: Vec<TransformArgument>) -> Self
Source§impl Into<TransformArgument> for Replicate
The replication will become n transforms, corresponding to one invocation each.
impl Into<TransformArgument> for Replicate
The replication will become n transforms, corresponding to one invocation each.
Source§fn into(self) -> TransformArgument
fn into(self) -> TransformArgument
Auto Trait Implementations§
impl Freeze for TransformArgument
impl RefUnwindSafe for TransformArgument
impl Send for TransformArgument
impl Sync for TransformArgument
impl Unpin for TransformArgument
impl UnwindSafe for TransformArgument
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
Source§fn 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>,
Source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn 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).Source§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.