pit-core 0.4.9

Portal Interface Types
1
2
3
4
5
6
7
8
9
10
11
12
13
pub use core;
use core::fmt::Write;

use sha3::digest::Update;
pub struct WriteUpdate<'a, 'b> {
    pub wrapped: &'a mut (dyn Update + 'b),
}
impl<'a,'b> Write for WriteUpdate<'a,'b>{
    fn write_str(&mut self, s: &str) -> core::fmt::Result {
        self.wrapped.update(s.as_bytes());
        Ok(())
    }
}