#[derive(AsMut)]
Expand description

Derive macro to implement AsMut when-ever it’s possible to do automatically.

§Sample :: struct instead of macro.

Write this

#[ derive( AsMut ) ]
pub struct IsTransparent( bool );

Instead of this

pub struct IsTransparent( bool );
impl AsMut< bool > for IsTransparent
{
  fn as_mut( &mut self ) -> &mut bool
  {
    &mut self.0
  }
}