data

Struct data 

Source
pub struct data {
Show 29 fields pub value: DomStrAttr, pub id: DomStrAttr, pub title: DomStrAttr, pub hidden: DomBoolAttr, pub touch_start: DomEvent<TouchStart>, pub touch_move: DomEvent<TouchMove>, pub touch_end: DomEvent<TouchEnd>, pub touch_cancel: DomEvent<TouchCancel>, pub mouse_down: DomEvent<MouseDown>, pub mouse_up: DomEvent<MouseUp>, pub mouse_move: DomEvent<MouseMove>, pub mouse_enter: DomEvent<MouseEnter>, pub mouse_leave: DomEvent<MouseLeave>, pub click: DomEvent<Click>, pub tap: DomEvent<Tap>, pub long_tap: DomEvent<LongTap>, pub cancel_tap: DomEvent<CancelTap>, pub scroll: DomEvent<Scroll>, pub animation_start: DomEvent<AnimationStart>, pub animation_iteration: DomEvent<AnimationIteration>, pub animation_end: DomEvent<AnimationEnd>, pub animation_cancel: DomEvent<AnimationCancel>, pub transition_run: DomEvent<TransitionRun>, pub transition_start: DomEvent<TransitionStart>, pub transition_end: DomEvent<TransitionEnd>, pub transition_cancel: DomEvent<TransitionCancel>, pub class: DomClassList, pub style: DomStyleList, pub attr: DomCustomAttrs, /* private fields */
}
Expand description

The HTML <data> element.

Fields§

§value: DomStrAttr

The value attribute.

§id: DomStrAttr

The id attribute.

§title: DomStrAttr

The title attribute.

§hidden: DomBoolAttr

The hidden attribute.

§touch_start: DomEvent<TouchStart>

The touchstart event.

§touch_move: DomEvent<TouchMove>

The touchmove event.

§touch_end: DomEvent<TouchEnd>

The touchend event.

§touch_cancel: DomEvent<TouchCancel>

The touchcancel event.

§mouse_down: DomEvent<MouseDown>

The mousedown event.

§mouse_up: DomEvent<MouseUp>

The mouseup event.

§mouse_move: DomEvent<MouseMove>

The mousemove event.

§mouse_enter: DomEvent<MouseEnter>

The mouseenter event.

§mouse_leave: DomEvent<MouseLeave>

The mouseleave event.

§click: DomEvent<Click>

The click event.

§tap: DomEvent<Tap>

The tap event.

§long_tap: DomEvent<LongTap>

The longtap event.

§cancel_tap: DomEvent<CancelTap>

The canceltap event.

§scroll: DomEvent<Scroll>

The scroll event.

§animation_start: DomEvent<AnimationStart>

The animationstart event.

§animation_iteration: DomEvent<AnimationIteration>

The animationiteration event.

§animation_end: DomEvent<AnimationEnd>

The animationend event.

§animation_cancel: DomEvent<AnimationCancel>

The animationcancel event.

§transition_run: DomEvent<TransitionRun>

The transitionrun event.

§transition_start: DomEvent<TransitionStart>

The transitionstart event.

§transition_end: DomEvent<TransitionEnd>

The transitionend event.

§transition_cancel: DomEvent<TransitionCancel>

The transitioncancel event.

§class: DomClassList

The class of the element.

§style: DomStyleList

The style of the element.

§attr: DomCustomAttrs

The custom attributes of the element.

Trait Implementations§

Source§

impl AsElementTag for data

Source§

type Target = data

The converted BackendComponent type.
Source§

type SlotChildren = StaticSingleSlot<ForestTokenAddr, Box<[DynNode]>>

The slot list type.
Source§

impl BackendComponent<DomBackend> for data

Source§

type SlotData = ()

The slot data type.
Source§

type UpdateTarget = data

The type of the updated comopnent or element.
Source§

type UpdateContext = DomElement

The update-related data of the component or element. Read more
Source§

fn init<'b>( _backend_context: &'b BackendContext<DomBackend>, owner: &'b mut ForestNodeMut<'_, DomGeneralElement>, _owner_weak: &'b Box<dyn OwnerWeak>, ) -> Result<(Self, ForestNodeRc<DomGeneralElement>), Error>
where Self: Sized,

Create with a backend element.
Source§

fn create<'b>( &'b mut self, _backend_context: &'b BackendContext<DomBackend>, owner: &'b mut ForestNodeMut<'_, DomGeneralElement>, update_fn: Box<dyn FnOnce(&mut Self, &mut Self::UpdateContext) + 'b>, slot_fn: &mut dyn FnMut(&mut ForestNodeMut<'_, DomGeneralElement>, &ForestToken, &Self::SlotData) -> Result<(), Error>, ) -> Result<(), Error>

Indicate that the create process should be finished.
Source§

fn apply_updates<'b>( &'b mut self, _backend_context: &'b BackendContext<DomBackend>, owner: &'b mut ForestNodeMut<'_, <DomBackend as Backend>::GeneralElement>, update_fn: Box<dyn FnOnce(&mut Self, &mut Self::UpdateContext) + 'b>, slot_fn: &mut dyn FnMut(SlotChange<&mut ForestNodeMut<'_, DomGeneralElement>, &ForestToken, &Self::SlotData>) -> Result<(), Error>, ) -> Result<(), Error>

Indicate that the pending updates should be applied.

Auto Trait Implementations§

§

impl !Freeze for data

§

impl !RefUnwindSafe for data

§

impl !Send for data

§

impl !Sync for data

§

impl Unpin for data

§

impl UnwindSafe for data

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<T> DomElementExt for T
where T: DomElementBase,

Source§

fn dom_element(&self) -> &Element

Get the underlying DOM element.
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<S, T> PropAsRef<S> for T
where S: PartialEq + ToOwned<Owned = T> + ?Sized, T: Borrow<S>,

Source§

fn property_as_ref(&self) -> &S

Borrow &Self as &S .
Source§

fn property_to_owned(s: &S) -> T

Clone &S as a new Self .
Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.