disuse 0.0.2

The way to notify the implementation which return value is disuse.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#![doc = include_str!("../README.md")]
#![no_std]

/// Receiver type for disuse return value.
#[derive(Debug, Default)]
pub struct Disuse;

/// Dispose of the return value.
/// Type `T` should implement [Clone].
impl<T: Clone> From<T> for Disuse {
    fn from(_: T) -> Self { Self }
}