[−][src]Struct sauron::dom::CreatedNode
A node along with all of the closures that were created for that node's events and all of it's child node's events.
Fields
node: T
A Node
or Element
that was created from a Node
Implementations
impl<T> CreatedNode<T>
[src]
pub fn without_closures<N>(node: N) -> CreatedNode<T> where
N: Into<T>,
[src]
N: Into<T>,
create a simple node with no closure attache
pub fn create_text_node(text: &str) -> Text
[src]
create a text node
pub fn create_dom_node<DSP, MSG>(
program: &DSP,
vnode: &Node<&'static str, &'static str, &'static str, AttributeValue, Event, MSG>
) -> CreatedNode<Node> where
DSP: Clone + Dispatch<MSG> + 'static,
MSG: 'static,
[src]
program: &DSP,
vnode: &Node<&'static str, &'static str, &'static str, AttributeValue, Event, MSG>
) -> CreatedNode<Node> where
DSP: Clone + Dispatch<MSG> + 'static,
MSG: 'static,
create an element node
pub fn create_dom_node_opt<DSP, MSG>(
program: Option<&DSP>,
vnode: &Node<&'static str, &'static str, &'static str, AttributeValue, Event, MSG>
) -> CreatedNode<Node> where
DSP: Clone + Dispatch<MSG> + 'static,
MSG: 'static,
[src]
program: Option<&DSP>,
vnode: &Node<&'static str, &'static str, &'static str, AttributeValue, Event, MSG>
) -> CreatedNode<Node> where
DSP: Clone + Dispatch<MSG> + 'static,
MSG: 'static,
Create and return a CreatedNode
instance (containing a DOM Node
together with potentially related closures) for this virtual node.
pub fn set_element_attributes<DSP, MSG>(
program: Option<&DSP>,
closures: &mut HashMap<u32, Vec<(&'static str, Closure<dyn FnMut(Event) + 'static>)>, RandomState>,
element: &Element,
attrs: &[&Attribute<&'static str, &'static str, AttributeValue, Event, MSG>]
) where
DSP: Clone + Dispatch<MSG> + 'static,
MSG: 'static,
[src]
program: Option<&DSP>,
closures: &mut HashMap<u32, Vec<(&'static str, Closure<dyn FnMut(Event) + 'static>)>, RandomState>,
element: &Element,
attrs: &[&Attribute<&'static str, &'static str, AttributeValue, Event, MSG>]
) where
DSP: Clone + Dispatch<MSG> + 'static,
MSG: 'static,
set the element attribute
pub fn set_element_attribute<DSP, MSG>(
program: Option<&DSP>,
closures: &mut HashMap<u32, Vec<(&'static str, Closure<dyn FnMut(Event) + 'static>)>, RandomState>,
element: &Element,
attr: &Attribute<&'static str, &'static str, AttributeValue, Event, MSG>
) where
DSP: Clone + Dispatch<MSG> + 'static,
MSG: 'static,
[src]
program: Option<&DSP>,
closures: &mut HashMap<u32, Vec<(&'static str, Closure<dyn FnMut(Event) + 'static>)>, RandomState>,
element: &Element,
attr: &Attribute<&'static str, &'static str, AttributeValue, Event, MSG>
) where
DSP: Clone + Dispatch<MSG> + 'static,
MSG: 'static,
set the element attribute
pub fn create_element_node<DSP, MSG>(
program: Option<&DSP>,
velem: &Element<&'static str, &'static str, &'static str, AttributeValue, Event, MSG>
) -> CreatedNode<Element> where
DSP: Clone + Dispatch<MSG> + 'static,
MSG: 'static,
[src]
program: Option<&DSP>,
velem: &Element<&'static str, &'static str, &'static str, AttributeValue, Event, MSG>
) -> CreatedNode<Element> where
DSP: Clone + Dispatch<MSG> + 'static,
MSG: 'static,
Build a DOM element by recursively creating DOM nodes for this element and it's children, it's children's children, etc.
Trait Implementations
impl<T> Debug for CreatedNode<T> where
T: Debug,
[src]
T: Debug,
impl<T> Deref for CreatedNode<T>
[src]
type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &<CreatedNode<T> as Deref>::Target
[src]
impl From<CreatedNode<Element>> for CreatedNode<Node>
[src]
fn from(other: CreatedNode<Element>) -> CreatedNode<Node>
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for CreatedNode<T>
impl<T> !Send for CreatedNode<T>
impl<T> !Sync for CreatedNode<T>
impl<T> Unpin for CreatedNode<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for CreatedNode<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow(&self) -> &TⓘNotable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
[src]
Notable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut TⓘNotable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
[src]
Notable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,