pub fn new() -> Option<Self> {
    Self::ENABLE_ADDRESS.write(Self::ENABLE_ADDRESS_INPUT);
    if Self::ENABLE_ADDRESS.read() == Self::ENABLE_ADDRESS_OUTPUT {
      Some(MGBADebug { bytes_written: 0 })
    } else {
      None
    }
  }
/// Gives a new MGBADebug, if running within `mGBA`
///
/// # Fails
///
/// If you're not running in the `mGBA` emulator.
Gives a new MGBADebug, if running within `mGBA`
Gives a new MGBADebug if running within ` mGBA `
pub fn new() -> Option<Self> {
    Self::ENABLE_ADDRESS.write(Self::ENABLE_ADDRESS_INPUT);
    if Self::ENABLE_ADDRESS.read() == Self::ENABLE_ADDRESS_OUTPUT {
      Some(MGBADebug { bytes_written: 0 })
    } else {
      None
    }
  }
pub fn new ( ) -> Option < Self > { Self :: ENABLE_ADDRESS . write ( Self :: ENABLE_ADDRESS_INPUT ) ; if Self :: ENABLE_ADDRESS . read ( ) == Self :: ENABLE_ADDRESS_OUTPUT { Some ( MGBADebug { bytes_written : 0 } ) } else { None } }
Gives a new MGBADebug, if running within `mGBA`
Gives a new MGBADebug if running within ` mGBA `
fails
If you're not running in the `mGBA` emulator.
If you ' re not running in the ` mGBA ` emulator .