pub struct MdxJsxElement<'a, N> {
pub name: Option<&'a str>,
pub attributes: ArenaVec<'a, MdxJsxAttribute<'a>>,
pub children: ArenaVec<'a, N>,
pub position: Option<Position<'a>>,
pub data: Option<&'a Data<'a>>,
}Expand description
A JSX element, <a b="c">d</a>, of mdast-util-mdx-jsx; mdast and hast share it, with
their own children. A fragment, <>d</>, has no name.
Fields§
§name: Option<&'a str>§attributes: ArenaVec<'a, MdxJsxAttribute<'a>>§children: ArenaVec<'a, N>§position: Option<Position<'a>>§data: Option<&'a Data<'a>>unist’s data, when the node carries any.
Trait Implementations§
Source§impl<'a, N: Debug> Debug for MdxJsxElement<'a, N>
impl<'a, N: Debug> Debug for MdxJsxElement<'a, N>
Source§impl<'a, N: PartialEq> PartialEq for MdxJsxElement<'a, N>
impl<'a, N: PartialEq> PartialEq for MdxJsxElement<'a, N>
impl<'a, N: PartialEq> StructuralPartialEq for MdxJsxElement<'a, N>
Auto Trait Implementations§
impl<'a, N> !RefUnwindSafe for MdxJsxElement<'a, N>
impl<'a, N> !Send for MdxJsxElement<'a, N>
impl<'a, N> !Sync for MdxJsxElement<'a, N>
impl<'a, N> !UnwindSafe for MdxJsxElement<'a, N>
impl<'a, N> Freeze for MdxJsxElement<'a, N>
impl<'a, N> Unpin for MdxJsxElement<'a, N>
impl<'a, N> UnsafeUnpin for MdxJsxElement<'a, N>where
ArenaVec<'a, N>: UnsafeUnpin,
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