Skip to main content

same

Function same 

Source
pub const fn same<T: Clone>(value: T) -> Same<T>
Expand description

Creates a generator that always produces the same value.

This is useful for creating parameterized unit tests or for fixing one input to a test while letting others be generated randomly.