derive_tools 0.70.1

A collection of derive macros designed to enhance STD.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! ## Test Matrix for `AsRef`
//!
//! | ID   | Struct Type        | Implementation | Expected Behavior                                       | Test File                   |
//! |------|--------------------|----------------|---------------------------------------------------------|-----------------------------|
//! | T3.1 | Tuple struct (1 field) | `#[ derive( AsRef ) ]` | `.as_ref()` returns a reference to the inner field. | `as_ref_test.rs`            |
//! | T3.2 | Tuple struct (1 field) | Manual `impl`  | `.as_ref()` returns a reference to the inner field. | `as_ref_manual_test.rs`     |
use test_tools ::a_id;
use crate ::the_module;
use super :: *;

// use diagnostics_tools ::prelude :: *;
// use derives :: *;

#[ derive( Debug, Clone, Copy, PartialEq, the_module ::AsRef ) ]
#[ allow( dead_code ) ]
pub struct IsTransparent(bool);

include!("./only_test/as_ref.rs");