macro_rules! to_lexical_with_options {
($name:literal, $value:literal, $t:ty, $ops_t:ty $(, #[$attr:meta])? $(,)?) => { ... };
}Available on crate features
write-floats or write-integers only.Expand description
Define the ToLexicalWithOptions trait.
name: The name of the crate calling the function.value: A numerical value to use for the example.t: The type of the number for the example.ops_t: The options type.
§Examples
ⓘ
to_lexical_with_options!("lexical_core", 1234, u64, WriteIntegerOptions);