pub struct ElementInfo {
pub id: ElementId,
pub parent: Option<ElementId>,
pub depth: usize,
pub type_name: &'static str,
pub dirty: bool,
pub active: bool,
pub stateful: bool,
pub animating: bool,
}Expand description
Element 树一行(深度优先,父在前)
Fields§
§id: ElementId§parent: Option<ElementId>§depth: usize相对根的深度(根 = 0)
type_name: &'static str§dirty: bool§active: bool§stateful: bool§animating: boolstate 当前是否在动画(帧内持续标脏的直接原因)
Trait Implementations§
Source§impl Clone for ElementInfo
impl Clone for ElementInfo
impl Copy for ElementInfo
Auto Trait Implementations§
impl Forget for ElementInfo
impl Freeze for ElementInfo
impl Move for ElementInfo
impl RefUnwindSafe for ElementInfo
impl Send for ElementInfo
impl Sync for ElementInfo
impl Unpin for ElementInfo
impl UnsafeUnpin for ElementInfo
impl UnwindSafe for ElementInfo
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