[][src]Module moxie_dom::prelude

A module for glob-importing the most commonly used moxie-dom items.

Re-exports

pub use crate::raw::sys;
pub use crate::elements::html;
pub use crate::elements::html;
pub use crate::interfaces::content_categories::EmbeddedContent as _;
pub use crate::interfaces::content_categories::FlowContent as _;
pub use crate::interfaces::content_categories::FormAssociatedContent as _;
pub use crate::interfaces::content_categories::HeadingContent as _;
pub use crate::interfaces::content_categories::InteractiveContent as _;
pub use crate::interfaces::content_categories::LabelableContent as _;
pub use crate::interfaces::content_categories::ListedContent as _;
pub use crate::interfaces::content_categories::MetadataContent as _;
pub use crate::interfaces::content_categories::PhrasingContent as _;
pub use crate::interfaces::content_categories::ResettableContent as _;
pub use crate::interfaces::content_categories::SectioningContent as _;
pub use crate::interfaces::content_categories::SubmittableContent as _;
pub use crate::interfaces::element::Element as _;
pub use crate::interfaces::event_target::EventTarget as _;
pub use crate::interfaces::global_events::GlobalEvent as _;
pub use crate::interfaces::global_events::GlobalEventHandler as _;
pub use crate::interfaces::html_element::HtmlElement as _;
pub use crate::interfaces::node::Node as _;
pub use crate::interfaces::node::Parent as _;
pub use crate::text::text;
pub use crate::Stateful;

Modules

event

Event types.

Structs

Key

A Key offers access to a state variable. The key allows reads of the state variable through a snapshot taken when the Key was created. Writes are supported with Key::update and Key::set.

Enums

Node

A Node in the augmented DOM.

Traits

_

A value which implements a subset of the web's document object model.

Functions

cache

Memoizes init at this callsite, cloning a cached Output if it exists and Input is the same as when the stored value was created.

cache_state

Root a state variable at this callsite, returning a Key to the state variable. Re-initializes the state variable if the capture arg changes.

cache_with

Cache the return of the init function.

document

Returns the current document. Panics if called outside a valid context.

once

Runs init once per topo::CallId. The provided value will always be cloned on subsequent calls unless first dropped from storage before being re-initialized.

once_with

Caches init once in the current topo::CallId. Runs with on every runtime::Revision.

state

Root a state variable at this callsite, returning a Key to the state variable.