tmi 0.10.0

twitch.tv messaging interface
Documentation
1
2
3
4
5
6
7
8
9
10
11
macro_rules! with_scratch {
  ($client:ident, |$scratch:ident| $body:block) => {{
    use ::std::fmt::Write;
    let mut scratch = std::mem::take(&mut $client.scratch);
    let $scratch = &mut scratch;
    let result = { $body };
    scratch.clear();
    $client.scratch = scratch;
    result
  }};
}