pub struct PresentationGeneration(/* private fields */);Expand description
Monotonic generation of a native presentation attached to a logical window.
A generation distinguishes successive native/surface attachments for the
same logical window. Public construction permits any u64; lifecycle
attachment increments with checked arithmetic and never wraps.
§Examples
use ailloli_ui_runtime::app::PresentationGeneration;
assert_eq!(PresentationGeneration::INITIAL.get(), 0);
assert!(PresentationGeneration::new(2) > PresentationGeneration::new(1));Implementations§
Source§impl PresentationGeneration
Provides the operations defined for PresentationGeneration.
impl PresentationGeneration
Provides the operations defined for PresentationGeneration.
Sourcepub const INITIAL: Self
pub const INITIAL: Self
Initial sentinel before any native presentation has attached.
§Examples
use ailloli_ui_runtime::app::PresentationGeneration;
assert_eq!(PresentationGeneration::INITIAL, PresentationGeneration::default());Trait Implementations§
Source§impl Clone for PresentationGeneration
impl Clone for PresentationGeneration
Source§fn clone(&self) -> PresentationGeneration
fn clone(&self) -> PresentationGeneration
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PresentationGeneration
impl Debug for PresentationGeneration
Source§impl Default for PresentationGeneration
impl Default for PresentationGeneration
Source§fn default() -> PresentationGeneration
fn default() -> PresentationGeneration
Returns the “default value” for a type. Read more
Source§impl Display for PresentationGeneration
Implements the fmt::Display contract for PresentationGeneration.
impl Display for PresentationGeneration
Implements the fmt::Display contract for PresentationGeneration.
Source§impl Hash for PresentationGeneration
impl Hash for PresentationGeneration
Source§impl Ord for PresentationGeneration
impl Ord for PresentationGeneration
Source§fn cmp(&self, other: &PresentationGeneration) -> Ordering
fn cmp(&self, other: &PresentationGeneration) -> Ordering
1.21.0 · 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
Source§impl PartialEq for PresentationGeneration
impl PartialEq for PresentationGeneration
Source§impl PartialOrd for PresentationGeneration
impl PartialOrd for PresentationGeneration
impl Copy for PresentationGeneration
impl Eq for PresentationGeneration
impl StructuralPartialEq for PresentationGeneration
Auto Trait Implementations§
impl Freeze for PresentationGeneration
impl RefUnwindSafe for PresentationGeneration
impl Send for PresentationGeneration
impl Sync for PresentationGeneration
impl Unpin for PresentationGeneration
impl UnwindSafe for PresentationGeneration
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
Source§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.