mod extra;
mod glyph_brush;
mod glyph_calculator;
mod section;
pub mod legacy;
pub use crate::{extra::*, glyph_brush::*, glyph_calculator::*, section::*};
pub use glyph_brush_draw_cache::Rectangle;
pub use glyph_brush_layout::*;
use glyph_brush_layout::ab_glyph::*;
#[cfg(not(target_arch = "wasm32"))]
pub type DefaultSectionHasher = twox_hash::xxhash64::RandomState;
#[cfg(target_arch = "wasm32")]
pub type DefaultSectionHasher = std::hash::BuildHasherDefault<twox_hash::XxHash64>;
#[test]
fn default_section_hasher() {
use std::hash::BuildHasher;
let section_a = Section::default().add_text(Text::new("Hovered Tile: Some((0, 0))"));
let section_b = Section::default().add_text(Text::new("Hovered Tile: Some((1, 0))"));
let hash = |s: &Section| DefaultSectionHasher::default().hash_one(s);
assert_ne!(hash(§ion_a), hash(§ion_b));
}