Trait libafl::stages::mutational::MutatedTransform

source ·
pub trait MutatedTransform<I, S>: Sized
where I: Input,
{ type Post: MutatedTransformPost<S>; // Required methods fn try_transform_from( base: &mut Testcase<I>, state: &S ) -> Result<Self, Error>; fn try_transform_into(self, state: &S) -> Result<(I, Self::Post), Error>; }
Expand description

A type which may both be transformed from and into a given input type, used to perform mutations over inputs which are not necessarily performable on the underlying type

This trait is implemented such that all testcases inherently transform to their inputs, should the input be cloneable.

Required Associated Types§

source

type Post: MutatedTransformPost<S>

Type indicating actions to be taken after the post-transformation input is executed

Required Methods§

source

fn try_transform_from(base: &mut Testcase<I>, state: &S) -> Result<Self, Error>

Transform the provided testcase into this type

source

fn try_transform_into(self, state: &S) -> Result<(I, Self::Post), Error>

Transform this instance back into the original input type

Object Safety§

This trait is not object safe.

Implementors§