Trait test_fuzz::Into

source ·
pub trait Into<T> {
    // Required method
    fn into(self) -> T;
}
Expand description

Trait whose implementation is required by the test_fuzz macro’s convert option.

The reason for using a non-standard trait is to avoid conflicts that could arise from blanket implementations of standard traits. For example, trying to use From instead of test_fuzz::Into can lead to errors like the following:

conflicting implementation in crate `core`:
- impl<T> From<T> for T;

Such errors were observed in the Substrate Node Template third-party test.

Required Methods§

source

fn into(self) -> T

Implementors§