pub struct UiTree {
pub schema: String,
pub viewport: Viewport,
pub root_id: String,
pub nodes: Vec<UiNode>,
pub tree_digest: String,
}Fields§
§schema: String§viewport: Viewport§root_id: String§nodes: Vec<UiNode>§tree_digest: StringImplementations§
Source§impl UiTree
impl UiTree
pub fn new( viewport: Viewport, root_id: impl Into<String>, nodes: Vec<UiNode>, ) -> Self
pub fn node(&self, id: &str) -> Option<&UiNode>
pub fn visible_node(&self, id: &str) -> Option<&UiNode>
pub fn is_effectively_visible(&self, id: &str) -> bool
pub fn compute_digest(&self) -> String
pub fn refresh_digest(&mut self)
pub fn validate(&self) -> Result<ValidationReport, ValidationError>
pub fn topmost_at(&self, x: f32, y: f32) -> Option<&UiNode>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UiTree
impl<'de> Deserialize<'de> for UiTree
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for UiTree
Auto Trait Implementations§
impl Freeze for UiTree
impl RefUnwindSafe for UiTree
impl Send for UiTree
impl Sync for UiTree
impl Unpin for UiTree
impl UnsafeUnpin for UiTree
impl UnwindSafe for UiTree
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