File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ edition = " 2024"
12format_code_in_doc_comments = true
2- imports_granularity = " crate"
3+ imports_granularity = ' crate'
4+ reorder_impl_items = true
5+ style_edition = " 2021"
6+ use_field_init_shorthand = true
7+ wrap_comments = true
Original file line number Diff line number Diff line change 8181//!
8282//! impl TryFrom<MyEnum> for Unit {
8383//! type Error = MyEnum;
84+ //!
8485//! fn try_from(enum_variant: MyEnum) -> Result<Self, Self::Error> {
8586//! if let MyEnum::Unit = enum_variant {
8687//! Ok(Unit)
99100//!
100101//! impl TryFrom<MyEnum> for Tuple {
101102//! type Error = MyEnum;
103+ //!
102104//! fn try_from(enum_variant: MyEnum) -> Result<Self, Self::Error> {
103105//! if let MyEnum::Tuple(_0, _1) = enum_variant {
104106//! Ok(Tuple(_0, _1))
117119//!
118120//! impl TryFrom<MyEnum> for Struct {
119121//! type Error = MyEnum;
122+ //!
120123//! fn try_from(enum_variant: MyEnum) -> Result<Self, Self::Error> {
121124//! if let MyEnum::Struct { field_0, field_1 } = enum_variant {
122125//! Ok(Struct { field_0, field_1 })
144147//!
145148//! ### Additional options specified by an `evt` attribute on enum:
146149//!
147- //! * `#[evt(derive(Clone, Copy))]`: Derives `Clone`, `Copy` on **every** variant.
148- //! * `#[evt(module = "module1")]`: Generated structs are placed into `mod module1 { ... }`.
149- //! * `#[evt(implement_marker_traits(MarkerTrait1))]`: Generated structs all `impl MarkerTrait1`.
150+ //! * `#[evt(derive(Clone, Copy))]`: Derives `Clone`, `Copy` on **every**
151+ //! variant.
152+ //! * `#[evt(module = "module1")]`: Generated structs are placed into `mod
153+ //! module1 { ... }`.
154+ //! * `#[evt(implement_marker_traits(MarkerTrait1))]`: Generated structs all
155+ //! `impl MarkerTrait1`.
150156
151157extern crate alloc;
152158extern crate proc_macro;
You can’t perform that action at this time.
0 commit comments