pub struct ElementFacts {
pub widget_runtime_type: Option<&'static str>,
pub stateful: bool,
pub creation_location: Option<&'static Location<'static>>,
}Expand description
What a node knows of its element, which Dart’s node reads from the element itself: the
widget inspector’s view of node.value when the value is an element.
Fields§
§widget_runtime_type: Option<&'static str>The widget’s type, as Dart’s widget.runtimeType prints; None once the element has no
widget.
stateful: boolWhether the element is a StatefulElement.
creation_location: Option<&'static Location<'static>>Where its widget was made, in a debug build.
Implementations§
Source§impl ElementFacts
impl ElementFacts
Sourcepub fn created_by_local_project(&self) -> bool
pub fn created_by_local_project(&self) -> bool
Whether the app’s own code made the widget: Dart’s _isValueCreatedByLocalProject. Rust
names a file of the workspace being built by a path relative to it, and a dependency’s,
from Cargo’s registry or a checkout beside the workspace, by an absolute one.
Trait Implementations§
Source§impl Clone for ElementFacts
impl Clone for ElementFacts
Source§impl Debug for ElementFacts
impl Debug for ElementFacts
impl Eq for ElementFacts
Source§impl PartialEq for ElementFacts
impl PartialEq for ElementFacts
impl StructuralPartialEq for ElementFacts
Auto Trait Implementations§
impl Forget for ElementFacts
impl Freeze for ElementFacts
impl Move for ElementFacts
impl RefUnwindSafe for ElementFacts
impl Send for ElementFacts
impl Sync for ElementFacts
impl Unpin for ElementFacts
impl UnsafeUnpin for ElementFacts
impl UnwindSafe for ElementFacts
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<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.