pub struct WindowId(/* private fields */);Expand description
Unique window identifier.
Windows are identified by a unique, monotonically increasing ID. This is a lightweight handle that can be cheaply cloned and compared.
§Example
use reovim_kernel::api::v1::WindowId;
let window1 = WindowId::new();
let window2 = WindowId::new();
assert_ne!(window1, window2);
assert_eq!(window1, window1);Implementations§
Trait Implementations§
Source§impl Ord for WindowId
impl Ord for WindowId
Source§impl PartialOrd for WindowId
impl PartialOrd for WindowId
impl Copy for WindowId
impl Eq for WindowId
impl StructuralPartialEq for WindowId
Auto Trait Implementations§
impl Freeze for WindowId
impl RefUnwindSafe for WindowId
impl Send for WindowId
impl Sync for WindowId
impl Unpin for WindowId
impl UnsafeUnpin for WindowId
impl UnwindSafe for WindowId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more