pub struct RetainedNode { /* private fields */ }Implementations§
Source§impl RetainedNode
impl RetainedNode
pub const fn id(&self) -> NodeId
pub const fn parent(&self) -> Option<NodeId>
pub fn key(&self) -> Option<&str>
pub const fn kind(&self) -> UiNodeKindTag
pub const fn primitive(&self) -> Option<&PrimitiveId>
pub fn component_root(&self) -> Option<&ComponentInstancePath>
pub const fn element_ref(&self) -> Option<&ElementRef>
pub fn attributes(&self) -> &BTreeMap<String, UiValue>
pub fn text(&self) -> Option<&str>
pub fn event_handlers(&self, event: &str) -> &[UiEventBinding]
pub fn handler_payload(&self, event: &str) -> Option<&UiValue>
pub fn handler_count(&self) -> usize
pub const fn scrollable(&self) -> bool
pub const fn focus_styled(&self) -> bool
pub const fn canvas_command_count(&self) -> usize
pub const fn canvas_scene(&self) -> Option<&CanvasScene>
pub const fn virtual_data_item_count(&self) -> usize
pub const fn virtual_realized_item_count(&self) -> usize
pub fn children(&self) -> impl ExactSizeIterator<Item = &RetainedChildLink>
Trait Implementations§
Source§impl Clone for RetainedNode
impl Clone for RetainedNode
Source§impl Debug for RetainedNode
impl Debug for RetainedNode
Source§impl PartialEq for RetainedNode
impl PartialEq for RetainedNode
impl StructuralPartialEq for RetainedNode
Auto Trait Implementations§
impl !RefUnwindSafe for RetainedNode
impl !Send for RetainedNode
impl !Sync for RetainedNode
impl !UnwindSafe for RetainedNode
impl Freeze for RetainedNode
impl Unpin for RetainedNode
impl UnsafeUnpin for RetainedNode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> Variant for T
impl<T> Variant for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert this
Variant trait object to &mut dyn Any.Source§fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
Convert this
Variant trait object to Box<dyn Any>.