Struct backdrop::TrivialStrategy
source · pub struct TrivialStrategy();
Expand description
Strategy which drops the contained value normally.
It behaves exactly as if the backdrop was not there.
Its main purpose is to be able to easily test the advantage of another strategy in a benchmark, without having to completely alter the structure of your code.
Trait Implementations§
source§impl<T> BackdropStrategy<T> for TrivialStrategy
impl<T> BackdropStrategy<T> for TrivialStrategy
Auto Trait Implementations§
impl RefUnwindSafe for TrivialStrategy
impl Send for TrivialStrategy
impl Sync for TrivialStrategy
impl Unpin for TrivialStrategy
impl UnwindSafe for TrivialStrategy
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.