pub struct Dom<'a> {
pub entries: Vec<DomEntry<'a>>,
/* private fields */
}Expand description
A flat sequence of DomEntry tokens produced by crate::parse_to_dom.
Each StartObject(n) / StartArray(n) carries the index of its matching
closer, enabling O(1) structural skips:
ⓘ
if let DomEntry::StartObject(end) = tape.entries[i] {
i = end + 1; // jump past the entire object
}Fields§
§entries: Vec<DomEntry<'a>>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Dom<'a>
impl<'a> RefUnwindSafe for Dom<'a>
impl<'a> Send for Dom<'a>
impl<'a> Sync for Dom<'a>
impl<'a> Unpin for Dom<'a>
impl<'a> UnsafeUnpin for Dom<'a>
impl<'a> UnwindSafe for Dom<'a>
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