pub struct IfcId(pub u32);Expand description
Unique identifier for an Inline Formatting Context (IFC).
An IFC represents a region where inline content (text, inline-blocks, images)
is laid out together. One IFC can contain content from multiple DOM nodes
(e.g., <p>Hello <span>world</span>!</p> is one IFC with 3 text runs).
The ID is generated using a global atomic counter that resets at the start of each layout pass. This ensures:
- IDs are unique within a layout pass
- The same logical IFC gets the same ID across frames (for selection stability)
Tuple Fields§
§0: u32Implementations§
Trait Implementations§
Source§impl Ord for IfcId
impl Ord for IfcId
Source§impl PartialOrd for IfcId
impl PartialOrd for IfcId
impl Copy for IfcId
impl Eq for IfcId
impl StructuralPartialEq for IfcId
Auto Trait Implementations§
impl Freeze for IfcId
impl RefUnwindSafe for IfcId
impl Send for IfcId
impl Sync for IfcId
impl Unpin for IfcId
impl UnwindSafe for IfcId
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more