more docs, inline

This commit is contained in:
Dominik Maier 2021-02-03 04:23:00 +01:00
parent af487fb56d
commit ab793303fb
2 changed files with 6 additions and 0 deletions

View File

@ -45,6 +45,7 @@ where
I: Input + HasTargetBytes, I: Input + HasTargetBytes,
OT: ObserversTuple, OT: ObserversTuple,
{ {
#[inline]
fn pre_exec<R, FT, C, EM>( fn pre_exec<R, FT, C, EM>(
&mut self, &mut self,
state: &State<I, R, FT>, state: &State<I, R, FT>,
@ -65,6 +66,7 @@ where
Ok(()) Ok(())
} }
#[inline]
fn post_exec<R, FT, C, EM>( fn post_exec<R, FT, C, EM>(
&mut self, &mut self,
_state: &State<I, R, FT>, _state: &State<I, R, FT>,

View File

@ -78,6 +78,8 @@ pub trait Executor<I>: Named
where where
I: Input, I: Input,
{ {
#[inline]
/// Called right before exexution starts
fn pre_exec<R, FT, C, EM>( fn pre_exec<R, FT, C, EM>(
&mut self, &mut self,
_state: &State<I, R, FT>, _state: &State<I, R, FT>,
@ -94,6 +96,8 @@ where
Ok(()) Ok(())
} }
#[inline]
/// Called right after execution finished.
fn post_exec<R, FT, C, EM>( fn post_exec<R, FT, C, EM>(
&mut self, &mut self,
_state: &State<I, R, FT>, _state: &State<I, R, FT>,