Skip to main content

MdxJsxElement

Struct MdxJsxElement 

Source
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>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a, N: PartialEq> PartialEq for MdxJsxElement<'a, N>

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

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>
where ArenaVec<'a, N>: Freeze,

§

impl<'a, N> Unpin for MdxJsxElement<'a, N>
where ArenaVec<'a, N>: Unpin,

§

impl<'a, N> UnsafeUnpin for MdxJsxElement<'a, N>
where ArenaVec<'a, N>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.