Crate default_is_triple_underscore

Source
Expand description

A shorter way to write default. Provide :

  • ___() as a shorthand for Default::default()
  • i32::___() instead of i32::default()

Based on the internals Rust discussion

Also check the Defaults crate which use default() instead of Default::default()

Traits§

DefaultIsTripleUnderscore
Uniform syntax : MyStruct::___() instead of MyStruct::default()

Functions§

___
___() is a shorthand for Default::default()