#[non_exhaustive]pub struct DisplayNode {
pub span: Span,
pub kind: Display,
pub children: Vec<Arc<DisplayNode>>,
}Expand description
One node of a provisional display tree. Spans are byte offsets into the
received text after the same UTF-8 repair crate::parse_bytes applies:
each maximal invalid byte subsequence becomes one U+FFFD.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.span: Span§kind: Display§children: Vec<Arc<DisplayNode>>Trait Implementations§
Source§impl Clone for DisplayNode
impl Clone for DisplayNode
Source§impl Debug for DisplayNode
impl Debug for DisplayNode
impl Eq for DisplayNode
Source§impl PartialEq for DisplayNode
impl PartialEq for DisplayNode
impl StructuralPartialEq for DisplayNode
Auto Trait Implementations§
impl Freeze for DisplayNode
impl RefUnwindSafe for DisplayNode
impl Send for DisplayNode
impl Sync for DisplayNode
impl Unpin for DisplayNode
impl UnsafeUnpin for DisplayNode
impl UnwindSafe for DisplayNode
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