mirror of
https://codeberg.org/waydeer/layer-shika.git
synced 2025-11-17 23:14:23 +00:00
14 lines
263 B
Rust
14 lines
263 B
Rust
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
|
pub struct WindowHandle(usize);
|
|
|
|
impl WindowHandle {
|
|
#[must_use]
|
|
pub const fn new(id: usize) -> Self {
|
|
Self(id)
|
|
}
|
|
|
|
#[must_use]
|
|
pub const fn id(&self) -> usize {
|
|
self.0
|
|
}
|
|
}
|