euv-ui 0.37.1

Reusable UI component library for the euv framework, providing buttons, cards, modals, inputs, and more.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use super::*;

#[cfg(any(target_arch = "wasm32", test))]
/// Implements [`Drop`] for [`SheetScrollLease`].
impl Drop for SheetScrollLease {
    /// Restores only the properties owned by this lease, exactly once.
    fn drop(&mut self) {
        if let Some(cleanup) = self.get_mut_cleanup().take() {
            cleanup();
        }
    }
}