pub enum RespoNode<T>{
Component(RespoComponent<T>),
Element(RespoElement<T>),
Referenced(Rc<RespoNode<T>>),
}
Expand description
an Element
or a Component
Variants§
Component(RespoComponent<T>)
Element(RespoElement<T>)
corresponding to DOM elements
Referenced(Rc<RespoNode<T>>)
Implementations§
Trait Implementations§
source§impl<T> From<RespoComponent<T>> for RespoNode<T>
impl<T> From<RespoComponent<T>> for RespoNode<T>
source§fn from(el: RespoComponent<T>) -> Self
fn from(el: RespoComponent<T>) -> Self
Converts to this type from the input type.
source§impl From<RespoElement<()>> for RespoNode<()>
impl From<RespoElement<()>> for RespoNode<()>
source§fn from(el: RespoElement<()>) -> Self
fn from(el: RespoElement<()>) -> Self
Converts to this type from the input type.
impl<T> Eq for RespoNode<T>
impl<T> StructuralPartialEq for RespoNode<T>
Auto Trait Implementations§
impl<T> Freeze for RespoNode<T>
impl<T> !RefUnwindSafe for RespoNode<T>
impl<T> !Send for RespoNode<T>
impl<T> !Sync for RespoNode<T>
impl<T> Unpin for RespoNode<T>
impl<T> !UnwindSafe for RespoNode<T>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)