Files
bezier_tool
clock
color_palette
counter
custom_widget
download_progress
events
game_of_life
geometry
iced
iced_core
iced_futures
iced_glow
iced_glutin
iced_graphics
iced_native
iced_style
iced_web
iced_wgpu
iced_winit
integration
pane_grid
pick_list
pokedex
progress_bar
solar_system
stopwatch
styling
svg
todos
tour
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
/// The hasher used to compare layouts.
#[derive(Debug)]
pub struct Hasher(twox_hash::XxHash64);

impl Default for Hasher {
    fn default() -> Self {
        Hasher(twox_hash::XxHash64::default())
    }
}

impl core::hash::Hasher for Hasher {
    fn write(&mut self, bytes: &[u8]) {
        self.0.write(bytes)
    }

    fn finish(&self) -> u64 {
        self.0.finish()
    }
}