Struct libafl::inputs::encoded::EncodedInput
source · pub struct EncodedInput { /* private fields */ }
Expand description
A codes input is the basic input
Implementations§
Trait Implementations§
source§impl Clone for EncodedInput
impl Clone for EncodedInput
source§fn clone(&self) -> EncodedInput
fn clone(&self) -> EncodedInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EncodedInput
impl Debug for EncodedInput
source§impl Default for EncodedInput
impl Default for EncodedInput
source§fn default() -> EncodedInput
fn default() -> EncodedInput
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for EncodedInput
impl<'de> Deserialize<'de> for EncodedInput
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<&[u32]> for EncodedInput
impl From<&[u32]> for EncodedInput
source§impl From<EncodedInput> for Rc<RefCell<EncodedInput>>
impl From<EncodedInput> for Rc<RefCell<EncodedInput>>
Rc Ref-cell from Input
source§fn from(input: EncodedInput) -> Self
fn from(input: EncodedInput) -> Self
Converts to this type from the input type.
source§impl HasLen for EncodedInput
impl HasLen for EncodedInput
source§impl Hash for EncodedInput
impl Hash for EncodedInput
source§impl Input for EncodedInput
impl Input for EncodedInput
source§fn generate_name(&self, _idx: usize) -> String
fn generate_name(&self, _idx: usize) -> String
Generate a name for this input
source§fn to_file<P>(&self, path: P) -> Result<(), Error>where
P: AsRef<Path>,
fn to_file<P>(&self, path: P) -> Result<(), Error>where
P: AsRef<Path>,
Write this input to the file
source§fn from_file<P>(path: P) -> Result<Self, Error>where
P: AsRef<Path>,
fn from_file<P>(path: P) -> Result<Self, Error>where
P: AsRef<Path>,
Load the content of this input from a file
source§fn wrapped_as_testcase(&mut self)
fn wrapped_as_testcase(&mut self)
An hook executed if the input is stored as
Testcase
source§impl<S: HasRand> Mutator<EncodedInput, S> for EncodedAddMutator
impl<S: HasRand> Mutator<EncodedInput, S> for EncodedAddMutator
source§fn mutate(
&mut self,
state: &mut S,
input: &mut EncodedInput,
_stage_idx: i32
) -> Result<MutationResult, Error>
fn mutate(
&mut self,
state: &mut S,
input: &mut EncodedInput,
_stage_idx: i32
) -> Result<MutationResult, Error>
Mutate a given input
source§impl<S: HasRand> Mutator<EncodedInput, S> for EncodedCopyMutator
impl<S: HasRand> Mutator<EncodedInput, S> for EncodedCopyMutator
source§fn mutate(
&mut self,
state: &mut S,
input: &mut EncodedInput,
_stage_idx: i32
) -> Result<MutationResult, Error>
fn mutate(
&mut self,
state: &mut S,
input: &mut EncodedInput,
_stage_idx: i32
) -> Result<MutationResult, Error>
Mutate a given input
source§impl<S: HasRand> Mutator<EncodedInput, S> for EncodedDecMutator
impl<S: HasRand> Mutator<EncodedInput, S> for EncodedDecMutator
source§fn mutate(
&mut self,
state: &mut S,
input: &mut EncodedInput,
_stage_idx: i32
) -> Result<MutationResult, Error>
fn mutate(
&mut self,
state: &mut S,
input: &mut EncodedInput,
_stage_idx: i32
) -> Result<MutationResult, Error>
Mutate a given input
source§impl<S: HasRand> Mutator<EncodedInput, S> for EncodedDeleteMutator
impl<S: HasRand> Mutator<EncodedInput, S> for EncodedDeleteMutator
source§fn mutate(
&mut self,
state: &mut S,
input: &mut EncodedInput,
_stage_idx: i32
) -> Result<MutationResult, Error>
fn mutate(
&mut self,
state: &mut S,
input: &mut EncodedInput,
_stage_idx: i32
) -> Result<MutationResult, Error>
Mutate a given input
source§impl<S: HasRand> Mutator<EncodedInput, S> for EncodedIncMutator
impl<S: HasRand> Mutator<EncodedInput, S> for EncodedIncMutator
source§fn mutate(
&mut self,
state: &mut S,
input: &mut EncodedInput,
_stage_idx: i32
) -> Result<MutationResult, Error>
fn mutate(
&mut self,
state: &mut S,
input: &mut EncodedInput,
_stage_idx: i32
) -> Result<MutationResult, Error>
Mutate a given input
source§impl<S> Mutator<EncodedInput, S> for EncodedInsertCopyMutatorwhere
S: HasRand + HasMaxSize,
impl<S> Mutator<EncodedInput, S> for EncodedInsertCopyMutatorwhere
S: HasRand + HasMaxSize,
source§fn mutate(
&mut self,
state: &mut S,
input: &mut EncodedInput,
_stage_idx: i32
) -> Result<MutationResult, Error>
fn mutate(
&mut self,
state: &mut S,
input: &mut EncodedInput,
_stage_idx: i32
) -> Result<MutationResult, Error>
Mutate a given input
source§impl<S: HasRand> Mutator<EncodedInput, S> for EncodedRandMutator
impl<S: HasRand> Mutator<EncodedInput, S> for EncodedRandMutator
source§fn mutate(
&mut self,
state: &mut S,
input: &mut EncodedInput,
_stage_idx: i32
) -> Result<MutationResult, Error>
fn mutate(
&mut self,
state: &mut S,
input: &mut EncodedInput,
_stage_idx: i32
) -> Result<MutationResult, Error>
Mutate a given input
source§impl PartialEq<EncodedInput> for EncodedInput
impl PartialEq<EncodedInput> for EncodedInput
source§fn eq(&self, other: &EncodedInput) -> bool
fn eq(&self, other: &EncodedInput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for EncodedInput
impl Serialize for EncodedInput
impl Eq for EncodedInput
impl StructuralEq for EncodedInput
impl StructuralPartialEq for EncodedInput
Auto Trait Implementations§
impl RefUnwindSafe for EncodedInput
impl Send for EncodedInput
impl Sync for EncodedInput
impl Unpin for EncodedInput
impl UnwindSafe for EncodedInput
Blanket Implementations§
source§impl<T> CallHasher for Twhere
T: Hash + ?Sized,
impl<T> CallHasher for Twhere
T: Hash + ?Sized,
source§impl<I, S> MutatedTransform<I, S> for Iwhere
I: Input + Clone,
impl<I, S> MutatedTransform<I, S> for Iwhere
I: Input + Clone,
source§fn try_transform_from(
base: &Testcase<I>,
_state: &S,
_corpus_idx: CorpusId
) -> Result<I, Error>
fn try_transform_from(
base: &Testcase<I>,
_state: &S,
_corpus_idx: CorpusId
) -> Result<I, Error>
Transform the provided testcase into this type
source§fn try_transform_into(
self,
_state: &S
) -> Result<(I, <I as MutatedTransform<I, S>>::Post), Error>
fn try_transform_into(
self,
_state: &S
) -> Result<(I, <I as MutatedTransform<I, S>>::Post), Error>
Transform this instance back into the original input type
source§impl<Tail, T> Prepend<T> for Tail
impl<Tail, T> Prepend<T> for Tail
§type PreprendResult = Tail
type PreprendResult = Tail
The Resulting
TupleList
, of an Prepend::prepend()
call,
including the prepended entry.source§fn prepend(self, value: T) -> (T, <Tail as Prepend<T>>::PreprendResult)
fn prepend(self, value: T) -> (T, <Tail as Prepend<T>>::PreprendResult)
Prepend a value to this tuple, returning a new tuple with prepended value.