Struct libafl::inputs::generalized::GeneralizedInput
source · [−]pub struct GeneralizedInput {
pub grimoire_mutated: bool,
/* private fields */
}
Expand description
A bytes input with a generalized version mainly used for Grimoire
Fields
grimoire_mutated: bool
If was mutated or not by Grimoire
Implementations
sourceimpl GeneralizedInput
impl GeneralizedInput
sourcepub fn generalized_from_options(&mut self, v: &[Option<u8>])
pub fn generalized_from_options(&mut self, v: &[Option<u8>])
Fill the generalized vector from a slice of option (None -> Gap)
sourcepub fn generalized_extend(&mut self, other: &[GeneralizedItem])
pub fn generalized_extend(&mut self, other: &[GeneralizedItem])
Extend the generalized input
sourcepub fn generalized_len(&self) -> usize
pub fn generalized_len(&self) -> usize
Get the size of the generalized
sourcepub fn generalized_to_bytes(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
pub fn generalized_to_bytes(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Convert generalized to bytes
sourcepub fn generalized(&self) -> Option<&[GeneralizedItem]>
pub fn generalized(&self) -> Option<&[GeneralizedItem]>
Get the generalized input
sourcepub fn generalized_mut(&mut self) -> &mut Option<Vec<GeneralizedItem>>
pub fn generalized_mut(&mut self) -> &mut Option<Vec<GeneralizedItem>>
Get the generalized input (mutable)
Trait Implementations
sourceimpl Clone for GeneralizedInput
impl Clone for GeneralizedInput
sourcefn clone(&self) -> GeneralizedInput
fn clone(&self) -> GeneralizedInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for GeneralizedInput
impl Debug for GeneralizedInput
sourceimpl Default for GeneralizedInput
impl Default for GeneralizedInput
sourcefn default() -> GeneralizedInput
fn default() -> GeneralizedInput
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for GeneralizedInput
impl<'de> Deserialize<'de> for GeneralizedInput
sourcefn 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
sourceimpl From<&[u8]> for GeneralizedInput
impl From<&[u8]> for GeneralizedInput
sourceimpl From<&BytesInput> for GeneralizedInput
impl From<&BytesInput> for GeneralizedInput
sourcefn from(bytes_input: &BytesInput) -> Self
fn from(bytes_input: &BytesInput) -> Self
Converts to this type from the input type.
sourceimpl From<BytesInput> for GeneralizedInput
impl From<BytesInput> for GeneralizedInput
sourcefn from(bytes_input: BytesInput) -> Self
fn from(bytes_input: BytesInput) -> Self
Converts to this type from the input type.
sourceimpl From<GeneralizedInput> for Rc<RefCell<GeneralizedInput>>
impl From<GeneralizedInput> for Rc<RefCell<GeneralizedInput>>
Rc Ref-cell from Input
sourcefn from(input: GeneralizedInput) -> Self
fn from(input: GeneralizedInput) -> Self
Converts to this type from the input type.
sourceimpl<G, S> Generator<GeneralizedInput, S> for GeneralizedInputBytesGenerator<G, S>where
S: HasRand,
G: Generator<BytesInput, S>,
impl<G, S> Generator<GeneralizedInput, S> for GeneralizedInputBytesGenerator<G, S>where
S: HasRand,
G: Generator<BytesInput, S>,
sourcefn generate_dummy(&self, state: &mut S) -> GeneralizedInput
fn generate_dummy(&self, state: &mut S) -> GeneralizedInput
Generate a new dummy input
sourceimpl HasBytesVec for GeneralizedInput
impl HasBytesVec for GeneralizedInput
sourceimpl HasLen for GeneralizedInput
impl HasLen for GeneralizedInput
sourceimpl HasTargetBytes for GeneralizedInput
impl HasTargetBytes for GeneralizedInput
sourcefn target_bytes(&self) -> OwnedSlice<'_, u8>
fn target_bytes(&self) -> OwnedSlice<'_, u8>
Target bytes, that can be written to a target
sourceimpl Hash for GeneralizedInput
impl Hash for GeneralizedInput
sourceimpl Input for GeneralizedInput
impl Input for GeneralizedInput
sourceimpl<S> Mutator<GeneralizedInput, S> for GrimoireExtensionMutatorwhere
S: HasMetadata + HasRand + HasCorpus<GeneralizedInput>,
impl<S> Mutator<GeneralizedInput, S> for GrimoireExtensionMutatorwhere
S: HasMetadata + HasRand + HasCorpus<GeneralizedInput>,
sourcefn mutate(
&mut self,
state: &mut S,
input: &mut GeneralizedInput,
_stage_idx: i32
) -> Result<MutationResult, Error>
fn mutate(
&mut self,
state: &mut S,
input: &mut GeneralizedInput,
_stage_idx: i32
) -> Result<MutationResult, Error>
Mutate a given input
sourceimpl<S> Mutator<GeneralizedInput, S> for GrimoireRandomDeleteMutatorwhere
S: HasMetadata + HasRand + HasCorpus<GeneralizedInput>,
impl<S> Mutator<GeneralizedInput, S> for GrimoireRandomDeleteMutatorwhere
S: HasMetadata + HasRand + HasCorpus<GeneralizedInput>,
sourcefn mutate(
&mut self,
state: &mut S,
input: &mut GeneralizedInput,
_stage_idx: i32
) -> Result<MutationResult, Error>
fn mutate(
&mut self,
state: &mut S,
input: &mut GeneralizedInput,
_stage_idx: i32
) -> Result<MutationResult, Error>
Mutate a given input
sourceimpl<S> Mutator<GeneralizedInput, S> for GrimoireRecursiveReplacementMutatorwhere
S: HasMetadata + HasRand + HasCorpus<GeneralizedInput>,
impl<S> Mutator<GeneralizedInput, S> for GrimoireRecursiveReplacementMutatorwhere
S: HasMetadata + HasRand + HasCorpus<GeneralizedInput>,
sourcefn mutate(
&mut self,
state: &mut S,
input: &mut GeneralizedInput,
_stage_idx: i32
) -> Result<MutationResult, Error>
fn mutate(
&mut self,
state: &mut S,
input: &mut GeneralizedInput,
_stage_idx: i32
) -> Result<MutationResult, Error>
Mutate a given input
sourceimpl<S> Mutator<GeneralizedInput, S> for GrimoireStringReplacementMutatorwhere
S: HasMetadata + HasRand,
impl<S> Mutator<GeneralizedInput, S> for GrimoireStringReplacementMutatorwhere
S: HasMetadata + HasRand,
sourcefn mutate(
&mut self,
state: &mut S,
input: &mut GeneralizedInput,
_stage_idx: i32
) -> Result<MutationResult, Error>
fn mutate(
&mut self,
state: &mut S,
input: &mut GeneralizedInput,
_stage_idx: i32
) -> Result<MutationResult, Error>
Mutate a given input
sourceimpl PartialEq<GeneralizedInput> for GeneralizedInput
impl PartialEq<GeneralizedInput> for GeneralizedInput
sourcefn eq(&self, other: &GeneralizedInput) -> bool
fn eq(&self, other: &GeneralizedInput) -> bool
sourceimpl Serialize for GeneralizedInput
impl Serialize for GeneralizedInput
impl Eq for GeneralizedInput
impl StructuralEq for GeneralizedInput
impl StructuralPartialEq for GeneralizedInput
Auto Trait Implementations
impl RefUnwindSafe for GeneralizedInput
impl Send for GeneralizedInput
impl Sync for GeneralizedInput
impl Unpin for GeneralizedInput
impl UnwindSafe for GeneralizedInput
Blanket Implementations
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
Mutably borrows from an owned value. Read more
sourceimpl<T> CallHasher for Twhere
T: Hash + ?Sized,
impl<T> CallHasher for Twhere
T: Hash + ?Sized,
sourceimpl<Tail, T> Prepend<T> for Tail
impl<Tail, T> Prepend<T> for Tail
type PreprendResult = Tail
type PreprendResult = Tail
sourcefn 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.