pub struct StdState<I, C, R, SC> { /* private fields */ }
Expand description
The state a fuzz run.
Implementations§
source§impl<C, I, R, SC> StdState<I, C, R, SC>
impl<C, I, R, SC> StdState<I, C, R, SC>
sourcepub fn must_load_initial_inputs(&self) -> bool
pub fn must_load_initial_inputs(&self) -> bool
Decide if the state nust load the inputs
sourcepub fn load_initial_inputs_by_filenames<E, EM, Z>(
&mut self,
fuzzer: &mut Z,
executor: &mut E,
manager: &mut EM,
file_list: &[PathBuf]
) -> Result<(), Error>
pub fn load_initial_inputs_by_filenames<E, EM, Z>( &mut self, fuzzer: &mut Z, executor: &mut E, manager: &mut EM, file_list: &[PathBuf] ) -> Result<(), Error>
Loads all intial inputs, even if they are not considered interesting
.
This is rarely the right method, use load_initial_inputs
,
and potentially fix your Feedback
, instead.
This method takes a list of files, instead of folders.
sourcepub fn load_initial_inputs_forced<E, EM, Z>(
&mut self,
fuzzer: &mut Z,
executor: &mut E,
manager: &mut EM,
in_dirs: &[PathBuf]
) -> Result<(), Error>
pub fn load_initial_inputs_forced<E, EM, Z>( &mut self, fuzzer: &mut Z, executor: &mut E, manager: &mut EM, in_dirs: &[PathBuf] ) -> Result<(), Error>
Loads all intial inputs, even if they are not considered interesting
.
This is rarely the right method, use load_initial_inputs
,
and potentially fix your Feedback
, instead.
sourcepub fn load_initial_inputs_by_filenames_forced<E, EM, Z>(
&mut self,
fuzzer: &mut Z,
executor: &mut E,
manager: &mut EM,
file_list: &[PathBuf]
) -> Result<(), Error>
pub fn load_initial_inputs_by_filenames_forced<E, EM, Z>( &mut self, fuzzer: &mut Z, executor: &mut E, manager: &mut EM, file_list: &[PathBuf] ) -> Result<(), Error>
Loads initial inputs from the passed-in in_dirs
.
If forced
is true, will add all testcases, no matter what.
This method takes a list of files, instead of folders.
source§impl<C, I, R, SC> StdState<I, C, R, SC>
impl<C, I, R, SC> StdState<I, C, R, SC>
sourcepub fn generate_initial_inputs_forced<G, E, EM, Z>(
&mut self,
fuzzer: &mut Z,
executor: &mut E,
generator: &mut G,
manager: &mut EM,
num: usize
) -> Result<(), Error>
pub fn generate_initial_inputs_forced<G, E, EM, Z>( &mut self, fuzzer: &mut Z, executor: &mut E, generator: &mut G, manager: &mut EM, num: usize ) -> Result<(), Error>
Generate num
initial inputs, using the passed-in generator and force the addition to corpus.
Trait Implementations§
source§impl<'de, I, C, R, SC> Deserialize<'de> for StdState<I, C, R, SC>where
C: Serialize + for<'a> Deserialize<'a>,
SC: Serialize + for<'a> Deserialize<'a>,
R: Serialize + for<'a> Deserialize<'a>,
impl<'de, I, C, R, SC> Deserialize<'de> for StdState<I, C, R, SC>where
C: Serialize + for<'a> Deserialize<'a>,
SC: Serialize + for<'a> Deserialize<'a>,
R: Serialize + for<'a> Deserialize<'a>,
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>,
source§impl Feedback<StdState<BytesInput, PythonCorpus, PythonRand, PythonCorpus>> for PyObjectFeedback
impl Feedback<StdState<BytesInput, PythonCorpus, PythonRand, PythonCorpus>> for PyObjectFeedback
source§fn init_state(&mut self, state: &mut PythonStdState) -> Result<(), Error>
fn init_state(&mut self, state: &mut PythonStdState) -> Result<(), Error>
State
is created.source§fn is_interesting<EM, OT>(
&mut self,
state: &mut PythonStdState,
manager: &mut EM,
input: &BytesInput,
observers: &OT,
exit_kind: &ExitKind
) -> Result<bool, Error>
fn is_interesting<EM, OT>( &mut self, state: &mut PythonStdState, manager: &mut EM, input: &BytesInput, observers: &OT, exit_kind: &ExitKind ) -> Result<bool, Error>
is_interesting
return if an input is worth the addition to the corpussource§fn append_metadata<OT>(
&mut self,
state: &mut PythonStdState,
observers: &OT,
testcase: &mut Testcase<BytesInput>
) -> Result<(), Error>where
OT: ObserversTuple<PythonStdState>,
fn append_metadata<OT>(
&mut self,
state: &mut PythonStdState,
observers: &OT,
testcase: &mut Testcase<BytesInput>
) -> Result<(), Error>where
OT: ObserversTuple<PythonStdState>,
source§fn discard_metadata(
&mut self,
state: &mut PythonStdState,
input: &BytesInput
) -> Result<(), Error>
fn discard_metadata( &mut self, state: &mut PythonStdState, input: &BytesInput ) -> Result<(), Error>
source§fn is_interesting_introspection<EM, OT>(
&mut self,
state: &mut S,
manager: &mut EM,
input: &S::Input,
observers: &OT,
exit_kind: &ExitKind
) -> Result<bool, Error>where
EM: EventFirer<State = S>,
OT: ObserversTuple<S>,
fn is_interesting_introspection<EM, OT>(
&mut self,
state: &mut S,
manager: &mut EM,
input: &S::Input,
observers: &OT,
exit_kind: &ExitKind
) -> Result<bool, Error>where
EM: EventFirer<State = S>,
OT: ObserversTuple<S>,
source§impl Feedback<StdState<BytesInput, PythonCorpus, PythonRand, PythonCorpus>> for PythonFeedback
impl Feedback<StdState<BytesInput, PythonCorpus, PythonRand, PythonCorpus>> for PythonFeedback
source§fn init_state(&mut self, state: &mut PythonStdState) -> Result<(), Error>
fn init_state(&mut self, state: &mut PythonStdState) -> Result<(), Error>
State
is created.source§fn is_interesting<EM, OT>(
&mut self,
state: &mut PythonStdState,
manager: &mut EM,
input: &BytesInput,
observers: &OT,
exit_kind: &ExitKind
) -> Result<bool, Error>
fn is_interesting<EM, OT>( &mut self, state: &mut PythonStdState, manager: &mut EM, input: &BytesInput, observers: &OT, exit_kind: &ExitKind ) -> Result<bool, Error>
is_interesting
return if an input is worth the addition to the corpussource§fn append_metadata<OT>(
&mut self,
state: &mut PythonStdState,
observers: &OT,
testcase: &mut Testcase<BytesInput>
) -> Result<(), Error>where
OT: ObserversTuple<PythonStdState>,
fn append_metadata<OT>(
&mut self,
state: &mut PythonStdState,
observers: &OT,
testcase: &mut Testcase<BytesInput>
) -> Result<(), Error>where
OT: ObserversTuple<PythonStdState>,
source§fn discard_metadata(
&mut self,
state: &mut PythonStdState,
input: &BytesInput
) -> Result<(), Error>
fn discard_metadata( &mut self, state: &mut PythonStdState, input: &BytesInput ) -> Result<(), Error>
source§fn is_interesting_introspection<EM, OT>(
&mut self,
state: &mut S,
manager: &mut EM,
input: &S::Input,
observers: &OT,
exit_kind: &ExitKind
) -> Result<bool, Error>where
EM: EventFirer<State = S>,
OT: ObserversTuple<S>,
fn is_interesting_introspection<EM, OT>(
&mut self,
state: &mut S,
manager: &mut EM,
input: &S::Input,
observers: &OT,
exit_kind: &ExitKind
) -> Result<bool, Error>where
EM: EventFirer<State = S>,
OT: ObserversTuple<S>,
source§impl Generator<BytesInput, StdState<BytesInput, PythonCorpus, PythonRand, PythonCorpus>> for PyObjectGenerator
impl Generator<BytesInput, StdState<BytesInput, PythonCorpus, PythonRand, PythonCorpus>> for PyObjectGenerator
source§fn generate(&mut self, state: &mut PythonStdState) -> Result<BytesInput, Error>
fn generate(&mut self, state: &mut PythonStdState) -> Result<BytesInput, Error>
source§impl Generator<BytesInput, StdState<BytesInput, PythonCorpus, PythonRand, PythonCorpus>> for PythonGenerator
impl Generator<BytesInput, StdState<BytesInput, PythonCorpus, PythonRand, PythonCorpus>> for PythonGenerator
source§fn generate(&mut self, state: &mut PythonStdState) -> Result<BytesInput, Error>
fn generate(&mut self, state: &mut PythonStdState) -> Result<BytesInput, Error>
source§impl<I, C, R, SC> HasClientPerfMonitor for StdState<I, C, R, SC>
impl<I, C, R, SC> HasClientPerfMonitor for StdState<I, C, R, SC>
source§fn introspection_monitor(&self) -> &ClientPerfMonitor
fn introspection_monitor(&self) -> &ClientPerfMonitor
ClientPerfMonitor
itselfsource§fn introspection_monitor_mut(&mut self) -> &mut ClientPerfMonitor
fn introspection_monitor_mut(&mut self) -> &mut ClientPerfMonitor
ClientPerfMonitor
source§impl<I, C, R, SC> HasExecutions for StdState<I, C, R, SC>
impl<I, C, R, SC> HasExecutions for StdState<I, C, R, SC>
source§fn executions(&self) -> &usize
fn executions(&self) -> &usize
The executions counter
source§fn executions_mut(&mut self) -> &mut usize
fn executions_mut(&mut self) -> &mut usize
The executions counter (mutable)
source§impl<I, C, R, SC> HasImported for StdState<I, C, R, SC>
impl<I, C, R, SC> HasImported for StdState<I, C, R, SC>
source§impl<I, C, R, SC> HasLastReportTime for StdState<I, C, R, SC>
impl<I, C, R, SC> HasLastReportTime for StdState<I, C, R, SC>
source§fn last_report_time(&self) -> &Option<Duration>
fn last_report_time(&self) -> &Option<Duration>
The last time we reported progress,if available/used.
This information is used by fuzzer maybe_report_progress
.
source§fn last_report_time_mut(&mut self) -> &mut Option<Duration>
fn last_report_time_mut(&mut self) -> &mut Option<Duration>
The last time we reported progress,if available/used (mutable).
This information is used by fuzzer maybe_report_progress
.
source§impl<I, C, R, SC> HasMaxSize for StdState<I, C, R, SC>
impl<I, C, R, SC> HasMaxSize for StdState<I, C, R, SC>
source§impl<I, C, R, SC> HasMetadata for StdState<I, C, R, SC>
impl<I, C, R, SC> HasMetadata for StdState<I, C, R, SC>
source§fn metadata_map(&self) -> &SerdeAnyMap
fn metadata_map(&self) -> &SerdeAnyMap
Get all the metadata into an hashbrown::HashMap
source§fn metadata_map_mut(&mut self) -> &mut SerdeAnyMap
fn metadata_map_mut(&mut self) -> &mut SerdeAnyMap
Get all the metadata into an hashbrown::HashMap
(mutable)
source§fn add_metadata<M>(&mut self, meta: M)where
M: SerdeAny,
fn add_metadata<M>(&mut self, meta: M)where
M: SerdeAny,
source§fn has_metadata<M>(&self) -> boolwhere
M: SerdeAny,
fn has_metadata<M>(&self) -> boolwhere
M: SerdeAny,
source§impl<I, C, R, SC> HasNamedMetadata for StdState<I, C, R, SC>
impl<I, C, R, SC> HasNamedMetadata for StdState<I, C, R, SC>
source§fn named_metadata_map(&self) -> &NamedSerdeAnyMap
fn named_metadata_map(&self) -> &NamedSerdeAnyMap
Get all the metadata into an hashbrown::HashMap
source§fn named_metadata_map_mut(&mut self) -> &mut NamedSerdeAnyMap
fn named_metadata_map_mut(&mut self) -> &mut NamedSerdeAnyMap
Get all the metadata into an hashbrown::HashMap
(mutable)
source§fn add_named_metadata<M>(&mut self, meta: M, name: &str)where
M: SerdeAny,
fn add_named_metadata<M>(&mut self, meta: M, name: &str)where
M: SerdeAny,
source§impl<I, C, R, SC> HasScalabilityMonitor for StdState<I, C, R, SC>
impl<I, C, R, SC> HasScalabilityMonitor for StdState<I, C, R, SC>
source§fn scalability_monitor(&self) -> &ScalabilityMonitor
fn scalability_monitor(&self) -> &ScalabilityMonitor
ScalabilityMonitor
source§fn scalability_monitor_mut(&mut self) -> &mut ScalabilityMonitor
fn scalability_monitor_mut(&mut self) -> &mut ScalabilityMonitor
ScalabilityMonitor
source§impl<I, C, R, SC> HasSolutions for StdState<I, C, R, SC>
impl<I, C, R, SC> HasSolutions for StdState<I, C, R, SC>
source§impl<I, C, R, SC> HasStartTime for StdState<I, C, R, SC>
impl<I, C, R, SC> HasStartTime for StdState<I, C, R, SC>
source§fn start_time(&self) -> &Duration
fn start_time(&self) -> &Duration
The starting time
source§fn start_time_mut(&mut self) -> &mut Duration
fn start_time_mut(&mut self) -> &mut Duration
The starting time (mutable)
source§impl<I, C, R, SC> HasTestcase for StdState<I, C, R, SC>
impl<I, C, R, SC> HasTestcase for StdState<I, C, R, SC>
source§impl Mutator<BytesInput, StdState<BytesInput, PythonCorpus, PythonRand, PythonCorpus>> for PyObjectMutator
impl Mutator<BytesInput, StdState<BytesInput, PythonCorpus, PythonRand, PythonCorpus>> for PyObjectMutator
source§fn mutate(
&mut self,
state: &mut PythonStdState,
input: &mut BytesInput,
stage_idx: i32
) -> Result<MutationResult, Error>
fn mutate( &mut self, state: &mut PythonStdState, input: &mut BytesInput, stage_idx: i32 ) -> Result<MutationResult, Error>
source§impl Mutator<BytesInput, StdState<BytesInput, PythonCorpus, PythonRand, PythonCorpus>> for PythonMutator
impl Mutator<BytesInput, StdState<BytesInput, PythonCorpus, PythonRand, PythonCorpus>> for PythonMutator
source§fn mutate(
&mut self,
state: &mut PythonStdState,
input: &mut BytesInput,
stage_idx: i32
) -> Result<MutationResult, Error>
fn mutate( &mut self, state: &mut PythonStdState, input: &mut BytesInput, stage_idx: i32 ) -> Result<MutationResult, Error>
source§impl Observer<StdState<BytesInput, PythonCorpus, PythonRand, PythonCorpus>> for PyObjectObserver
impl Observer<StdState<BytesInput, PythonCorpus, PythonRand, PythonCorpus>> for PyObjectObserver
source§fn flush(&mut self) -> Result<(), Error>
fn flush(&mut self) -> Result<(), Error>
source§fn pre_exec(
&mut self,
state: &mut PythonStdState,
input: &BytesInput
) -> Result<(), Error>
fn pre_exec( &mut self, state: &mut PythonStdState, input: &BytesInput ) -> Result<(), Error>
source§fn post_exec(
&mut self,
state: &mut PythonStdState,
input: &BytesInput,
exit_kind: &ExitKind
) -> Result<(), Error>
fn post_exec( &mut self, state: &mut PythonStdState, input: &BytesInput, exit_kind: &ExitKind ) -> Result<(), Error>
source§fn pre_exec_child(
&mut self,
state: &mut PythonStdState,
input: &BytesInput
) -> Result<(), Error>
fn pre_exec_child( &mut self, state: &mut PythonStdState, input: &BytesInput ) -> Result<(), Error>
source§fn post_exec_child(
&mut self,
state: &mut PythonStdState,
input: &BytesInput,
exit_kind: &ExitKind
) -> Result<(), Error>
fn post_exec_child( &mut self, state: &mut PythonStdState, input: &BytesInput, exit_kind: &ExitKind ) -> Result<(), Error>
source§fn observes_stdout(&self) -> bool
fn observes_stdout(&self) -> bool
stdout
source§fn observes_stderr(&self) -> bool
fn observes_stderr(&self) -> bool
stderr
source§fn observe_stdout(&mut self, stdout: &[u8])
fn observe_stdout(&mut self, stdout: &[u8])
stdout
To use this, always return true
from observes_stdout
source§fn observe_stderr(&mut self, stderr: &[u8])
fn observe_stderr(&mut self, stderr: &[u8])
stderr
To use this, always return true
from observes_stderr
source§impl Observer<StdState<BytesInput, PythonCorpus, PythonRand, PythonCorpus>> for PythonObserver
impl Observer<StdState<BytesInput, PythonCorpus, PythonRand, PythonCorpus>> for PythonObserver
source§fn flush(&mut self) -> Result<(), Error>
fn flush(&mut self) -> Result<(), Error>
source§fn pre_exec(
&mut self,
state: &mut PythonStdState,
input: &BytesInput
) -> Result<(), Error>
fn pre_exec( &mut self, state: &mut PythonStdState, input: &BytesInput ) -> Result<(), Error>
source§fn post_exec(
&mut self,
state: &mut PythonStdState,
input: &BytesInput,
exit_kind: &ExitKind
) -> Result<(), Error>
fn post_exec( &mut self, state: &mut PythonStdState, input: &BytesInput, exit_kind: &ExitKind ) -> Result<(), Error>
source§fn pre_exec_child(
&mut self,
state: &mut PythonStdState,
input: &BytesInput
) -> Result<(), Error>
fn pre_exec_child( &mut self, state: &mut PythonStdState, input: &BytesInput ) -> Result<(), Error>
source§fn post_exec_child(
&mut self,
state: &mut PythonStdState,
input: &BytesInput,
exit_kind: &ExitKind
) -> Result<(), Error>
fn post_exec_child( &mut self, state: &mut PythonStdState, input: &BytesInput, exit_kind: &ExitKind ) -> Result<(), Error>
source§fn observes_stdout(&self) -> bool
fn observes_stdout(&self) -> bool
stdout
source§fn observes_stderr(&self) -> bool
fn observes_stderr(&self) -> bool
stderr
source§fn observe_stdout(&mut self, stdout: &[u8])
fn observe_stdout(&mut self, stdout: &[u8])
stdout
To use this, always return true
from observes_stdout
source§fn observe_stderr(&mut self, stderr: &[u8])
fn observe_stderr(&mut self, stderr: &[u8])
stderr
To use this, always return true
from observes_stderr
source§impl ObserversTuple<StdState<BytesInput, PythonCorpus, PythonRand, PythonCorpus>> for PythonObserversTuple
impl ObserversTuple<StdState<BytesInput, PythonCorpus, PythonRand, PythonCorpus>> for PythonObserversTuple
source§fn pre_exec_all(
&mut self,
state: &mut PythonStdState,
input: &BytesInput
) -> Result<(), Error>
fn pre_exec_all( &mut self, state: &mut PythonStdState, input: &BytesInput ) -> Result<(), Error>
source§fn post_exec_all(
&mut self,
state: &mut PythonStdState,
input: &BytesInput,
exit_kind: &ExitKind
) -> Result<(), Error>
fn post_exec_all( &mut self, state: &mut PythonStdState, input: &BytesInput, exit_kind: &ExitKind ) -> Result<(), Error>
source§fn pre_exec_child_all(
&mut self,
state: &mut PythonStdState,
input: &BytesInput
) -> Result<(), Error>
fn pre_exec_child_all( &mut self, state: &mut PythonStdState, input: &BytesInput ) -> Result<(), Error>
source§fn post_exec_child_all(
&mut self,
state: &mut PythonStdState,
input: &BytesInput,
exit_kind: &ExitKind
) -> Result<(), Error>
fn post_exec_child_all( &mut self, state: &mut PythonStdState, input: &BytesInput, exit_kind: &ExitKind ) -> Result<(), Error>
source§fn observes_stdout(&self) -> bool
fn observes_stdout(&self) -> bool
stdout
observer was added to the listsource§fn observes_stderr(&self) -> bool
fn observes_stderr(&self) -> bool
stderr
observer was added to the listsource§fn observe_stderr(&mut self, _: &[u8])
fn observe_stderr(&mut self, _: &[u8])
observe_stderr
for all stderr observers in the listsource§fn observe_stdout(&mut self, _: &[u8])
fn observe_stdout(&mut self, _: &[u8])
observe_stdout
for all stdout observers in the listsource§impl<I, C, R, SC> Serialize for StdState<I, C, R, SC>where
C: Serialize + for<'a> Deserialize<'a>,
SC: Serialize + for<'a> Deserialize<'a>,
R: Serialize + for<'a> Deserialize<'a>,
impl<I, C, R, SC> Serialize for StdState<I, C, R, SC>where
C: Serialize + for<'a> Deserialize<'a>,
SC: Serialize + for<'a> Deserialize<'a>,
R: Serialize + for<'a> Deserialize<'a>,
source§impl StagesTuple<PythonExecutor, PythonEventManager, StdState<BytesInput, PythonCorpus, PythonRand, PythonCorpus>, StdFuzzer<QueueScheduler<StdState<BytesInput, PythonCorpus, PythonRand, PythonCorpus>>, PythonFeedback, PythonFeedback, PythonObserversTuple>> for PythonStagesTuple
impl StagesTuple<PythonExecutor, PythonEventManager, StdState<BytesInput, PythonCorpus, PythonRand, PythonCorpus>, StdFuzzer<QueueScheduler<StdState<BytesInput, PythonCorpus, PythonRand, PythonCorpus>>, PythonFeedback, PythonFeedback, PythonObserversTuple>> for PythonStagesTuple
source§fn perform_all(
&mut self,
fuzzer: &mut PythonStdFuzzer,
executor: &mut PythonExecutor,
state: &mut PythonStdState,
manager: &mut PythonEventManager,
corpus_idx: CorpusId
) -> Result<(), Error>
fn perform_all( &mut self, fuzzer: &mut PythonStdFuzzer, executor: &mut PythonExecutor, state: &mut PythonStdState, manager: &mut PythonEventManager, corpus_idx: CorpusId ) -> Result<(), Error>
Stages
in this tupleimpl<I, C, R, SC> State for StdState<I, C, R, SC>
Auto Trait Implementations§
impl<I, C, R, SC> !RefUnwindSafe for StdState<I, C, R, SC>
impl<I, C, R, SC> !Send for StdState<I, C, R, SC>
impl<I, C, R, SC> !Sync for StdState<I, C, R, SC>
impl<I, C, R, SC> Unpin for StdState<I, C, R, SC>
impl<I, C, R, SC> !UnwindSafe for StdState<I, C, R, SC>
Blanket Implementations§
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
§impl<T> Conv for T
impl<T> Conv for T
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self
to use its LowerExp
implementation when
Debug
-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self
to use its LowerHex
implementation when
Debug
-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self
to use its Octal
implementation when Debug
-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self
to use its Pointer
implementation when
Debug
-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self
to use its UpperExp
implementation when
Debug
-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self
to use its UpperHex
implementation when
Debug
-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self
, then passes self.as_ref()
into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self
, then passes self.as_mut()
into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.source§impl<Tail, T> Prepend<T> for Tail
impl<Tail, T> Prepend<T> for Tail
§type PreprendResult = Tail
type PreprendResult = Tail
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)
source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow()
only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref()
only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.