Skip to main content

ElementData

Struct ElementData 

Source
pub struct ElementData { /* private fields */ }
Expand description

The fields of Dart’s Element base class.

Implementations§

Source§

impl ElementData

Source

pub fn new(widget: WidgetRef) -> ElementData

Creates an element’s bookkeeping for the given widget.

Source

pub fn widget_ref(&self) -> &WidgetRef

The configuration for this element, as a shared reference.

Auto Trait Implementations§

§

impl !RefUnwindSafe for ElementData

§

impl !Send for ElementData

§

impl !Sync for ElementData

§

impl !UnwindSafe for ElementData

§

impl Forget for ElementData

§

impl Freeze for ElementData
where NonZero<u32>: Freeze, &'static ElementVTable: Freeze, *const RcInner<dyn Any> is !null: Freeze, PhantomData<RcInner<dyn Any>>: Freeze, *const RcInner<dyn Widget> is !null: Freeze, PhantomData<RcInner<dyn Widget>>: Freeze, PhantomData<fn() -> BuildOwner>: Freeze, PhantomData<fn() -> BuildScope>: Freeze, *const RcInner<Keep> is !null: Freeze, PhantomData<RcInner<Keep>>: Freeze, *const RcInner<HashMap<TypeId, AnyElement>> is !null: Freeze, PhantomData<RcInner<HashMap<TypeId, AnyElement>>>: Freeze, *const RcInner<NotificationNode> is !null: Freeze, PhantomData<RcInner<NotificationNode>>: Freeze, *const u8 is !null: Freeze, PhantomData<(AnyElement, ())>: Freeze, PhantomData<(EntityId, Subscription)>: Freeze,

§

impl Move for ElementData

§

impl Unpin for ElementData
where NonZero<u32>: Unpin, &'static ElementVTable: Unpin, Rc<dyn Any>: Unpin, Rc<dyn Widget>: Unpin, Rc<Keep>: Unpin, Rc<HashMap<TypeId, AnyElement>>: Unpin, Rc<NotificationNode>: Unpin, *const u8 is !null: Unpin, Rc<Cell<bool>>: Unpin,

§

impl UnsafeUnpin for ElementData
where NonZeroU32Inner: UnsafeUnpin, &'static ElementVTable: UnsafeUnpin, *const RcInner<dyn Any> is !null: UnsafeUnpin, PhantomData<RcInner<dyn Any>>: UnsafeUnpin, *const RcInner<dyn Widget> is !null: UnsafeUnpin, PhantomData<RcInner<dyn Widget>>: UnsafeUnpin, PhantomData<fn() -> BuildOwner>: UnsafeUnpin, PhantomData<fn() -> BuildScope>: UnsafeUnpin, *const RcInner<Keep> is !null: UnsafeUnpin, PhantomData<RcInner<Keep>>: UnsafeUnpin, *const RcInner<HashMap<TypeId, AnyElement>> is !null: UnsafeUnpin, PhantomData<RcInner<HashMap<TypeId, AnyElement>>>: UnsafeUnpin, *const RcInner<NotificationNode> is !null: UnsafeUnpin, PhantomData<RcInner<NotificationNode>>: UnsafeUnpin, *const u8 is !null: UnsafeUnpin, PhantomData<(AnyElement, ())>: UnsafeUnpin, PhantomData<(EntityId, Subscription)>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>