pub enum LayoutPass {
Measure,
Commit,
}Expand description
Authority of the geometry produced by the current layout traversal.
Measurement is speculative and must not commit persistent state derived from the temporary geometry. Commit passes use the allocation retained by the parent and may evaluate geometry-dependent effects. A measurement pass is sticky: descendants cannot regain commit authority locally.
§Examples
use ailloli_ui_runtime::layout::LayoutPass;
assert!(LayoutPass::Measure.is_measure());
assert!(LayoutPass::Commit.is_committed());Variants§
Implementations§
Source§impl LayoutPass
Provides phase predicates and sticky descendant composition.
impl LayoutPass
Provides phase predicates and sticky descendant composition.
Sourcepub const fn is_measure(self) -> bool
pub const fn is_measure(self) -> bool
Returns true for speculative measurement geometry.
Sourcepub const fn is_committed(self) -> bool
pub const fn is_committed(self) -> bool
Returns true for authoritative committed geometry.
Trait Implementations§
Source§impl Clone for LayoutPass
impl Clone for LayoutPass
Source§fn clone(&self) -> LayoutPass
fn clone(&self) -> LayoutPass
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 LayoutPass
impl Debug for LayoutPass
Source§impl Default for LayoutPass
impl Default for LayoutPass
Source§fn default() -> LayoutPass
fn default() -> LayoutPass
Returns the “default value” for a type. Read more
Source§impl Hash for LayoutPass
impl Hash for LayoutPass
Source§impl PartialEq for LayoutPass
impl PartialEq for LayoutPass
impl Copy for LayoutPass
impl Eq for LayoutPass
impl StructuralPartialEq for LayoutPass
Auto Trait Implementations§
impl Freeze for LayoutPass
impl RefUnwindSafe for LayoutPass
impl Send for LayoutPass
impl Sync for LayoutPass
impl Unpin for LayoutPass
impl UnwindSafe for LayoutPass
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> 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.