pub struct NopInput {}
Expand description
An input for tests, mainly. There is no real use much else.
Trait Implementations§
source§impl<'de> Deserialize<'de> for NopInput
impl<'de> Deserialize<'de> for NopInput
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 HasTargetBytes for NopInput
impl HasTargetBytes for NopInput
source§fn target_bytes(&self) -> OwnedSlice<'_, u8>
fn target_bytes(&self) -> OwnedSlice<'_, u8>
Target bytes, that can be written to a target
source§impl Input for NopInput
impl Input for NopInput
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
impl Copy for NopInput
Auto Trait Implementations§
impl RefUnwindSafe for NopInput
impl Send for NopInput
impl Sync for NopInput
impl Unpin for NopInput
impl UnwindSafe for NopInput
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.