pub struct SelectionSerial(/* private fields */);Expand description
A reading of Dom::selection_serial:
a counter that advances on every actual selection change. Two equal
readings mean the selection was not touched in between; a later
reading compares greater (the counter is a u64, so it does not
wrap in practice). An opaque bookkeeping value — no web API exposes
it; new / get exist for tests and for
backends that persist a reading.
Implementations§
Trait Implementations§
Source§impl Clone for SelectionSerial
impl Clone for SelectionSerial
impl Copy for SelectionSerial
Source§impl Debug for SelectionSerial
impl Debug for SelectionSerial
Source§impl Default for SelectionSerial
impl Default for SelectionSerial
impl Eq for SelectionSerial
Source§impl Hash for SelectionSerial
impl Hash for SelectionSerial
Source§impl Ord for SelectionSerial
impl Ord for SelectionSerial
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SelectionSerial
impl PartialEq for SelectionSerial
Source§impl PartialOrd for SelectionSerial
impl PartialOrd for SelectionSerial
impl StructuralPartialEq for SelectionSerial
Auto Trait Implementations§
impl Freeze for SelectionSerial
impl RefUnwindSafe for SelectionSerial
impl Send for SelectionSerial
impl Sync for SelectionSerial
impl Unpin for SelectionSerial
impl UnsafeUnpin for SelectionSerial
impl UnwindSafe for SelectionSerial
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