add reference_of!() macro
This commit is contained in:
parent
c7f0caf34a
commit
d473a32820
2 changed files with 25 additions and 1 deletions
|
@ -18,7 +18,7 @@ macro_rules! validate {
|
|||
/// It will check all supplied types and return `false` if none are matching.
|
||||
///
|
||||
/// # Example
|
||||
/// ```
|
||||
/// ```ignore
|
||||
/// fn validate(&self) -> bool {
|
||||
/// assert_reference_of!(self.owner, Person);
|
||||
/// true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue