pub struct code {Show 28 fields
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 <code> element.
Fields§
§id: DomStrAttrThe id attribute.
title: DomStrAttrThe title attribute.
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: DomClassListThe class of the element.
style: DomStyleListThe style of the element.
attr: DomCustomAttrsThe custom attributes of the element.
Trait Implementations§
Source§impl AsElementTag for code
impl AsElementTag for code
Source§type SlotChildren = StaticSingleSlot<ForestTokenAddr, Box<[DynNode]>>
type SlotChildren = StaticSingleSlot<ForestTokenAddr, Box<[DynNode]>>
The slot list type.
Source§impl BackendComponent<DomBackend> for code
impl BackendComponent<DomBackend> for code
Source§type UpdateTarget = code
type UpdateTarget = code
The type of the updated comopnent or element.
Source§type UpdateContext = DomElement
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,
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>
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>
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 code
impl !RefUnwindSafe for code
impl !Send for code
impl !Sync for code
impl Unpin for code
impl UnwindSafe for code
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
Source§impl<T> DomElementExt for Twhere
T: DomElementBase,
impl<T> DomElementExt for Twhere
T: DomElementBase,
Source§fn dom_element(&self) -> &Element
fn dom_element(&self) -> &Element
Get the underlying DOM element.
Source§impl<S, T> PropAsRef<S> for T
impl<S, T> PropAsRef<S> for T
Source§fn property_as_ref(&self) -> &S
fn property_as_ref(&self) -> &S
Borrow
&Self as &S .Source§fn property_to_owned(s: &S) -> T
fn property_to_owned(s: &S) -> T
Clone
&S as a new Self .