pub struct DomDebugFragment {
pub map: BTreeMap<DomId, DomDebugNode>,
pub css: BTreeMap<String, String>,
pub root_node: Option<DomId>,
}Expand description
Fragment of DOM created from DOM commands, debuggable
Fields§
§map: BTreeMap<DomId, DomDebugNode>§css: BTreeMap<String, String>§root_node: Option<DomId>Implementations§
Source§impl DomDebugFragment
impl DomDebugFragment
Sourcepub fn from_cmds(cmds: Vec<DriverDomCommand>) -> Self
pub fn from_cmds(cmds: Vec<DriverDomCommand>) -> Self
Creates debug fragment from vector of commands generated by vertigo
Sourcepub fn to_pseudo_html(&self) -> String
pub fn to_pseudo_html(&self) -> String
Construct a pseudo-html string from DomDebugFragment.
May render only part of the fragment if nodes are not connected to one root element.
Trait Implementations§
Source§impl Clone for DomDebugFragment
impl Clone for DomDebugFragment
Source§fn clone(&self) -> DomDebugFragment
fn clone(&self) -> DomDebugFragment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DomDebugFragment
impl RefUnwindSafe for DomDebugFragment
impl Send for DomDebugFragment
impl Sync for DomDebugFragment
impl Unpin for DomDebugFragment
impl UnwindSafe for DomDebugFragment
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