pub struct DomRecord {
pub entity: Entity,
pub generation: u32,
pub tag: String,
pub id: Option<String>,
pub classes: Vec<String>,
pub parent: Option<Entity>,
pub children: Vec<Entity>,
pub child_index: i32,
pub sibling_count: i32,
pub doc_order: u32,
}Expand description
One selector-reachable element in a DomIndex snapshot. Positional
fields (child_index, sibling_count, doc_order) are computed by
DomIndex::build from the hierarchy; callers constructing records
leave them at zero.
Fields§
§entity: EntityThe element entity.
generation: u32Its generation bits, mirrored into minted handles.
tag: StringMarkup tag (button, label, …). Empty for a tagless container.
id: Option<String>Stable id="...", if any.
classes: Vec<String>Class list from class="...".
parent: Option<Entity>Parent element, if this record has one inside the snapshot.
children: Vec<Entity>Child elements in document order.
child_index: i321-based position among siblings (computed).
sibling_count: i32Total sibling count including self (computed).
doc_order: u32Depth-first pre-order rank across the whole snapshot (computed).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DomRecord
impl RefUnwindSafe for DomRecord
impl Send for DomRecord
impl Sync for DomRecord
impl Unpin for DomRecord
impl UnsafeUnpin for DomRecord
impl UnwindSafe for DomRecord
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<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.