pub struct JsxElement {
pub opening_element: JsxOpeningElement,
pub children: Vec<JsxChild>,
pub closing_element: JsxClosingElement,
pub span: Range<usize>,
}Expand description
Represents a JSX element.
Fields§
§opening_element: JsxOpeningElementOpening element tag.
children: Vec<JsxChild>Children of the JSX element.
closing_element: JsxClosingElementClosing element tag.
span: Range<usize>Source span of the JSX element.
Trait Implementations§
Source§impl Clone for JsxElement
impl Clone for JsxElement
Source§fn clone(&self) -> JsxElement
fn clone(&self) -> JsxElement
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 moreSource§impl Debug for JsxElement
impl Debug for JsxElement
Source§impl<'de> Deserialize<'de> for JsxElement
impl<'de> Deserialize<'de> for JsxElement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for JsxElement
impl RefUnwindSafe for JsxElement
impl Send for JsxElement
impl Sync for JsxElement
impl Unpin for JsxElement
impl UnsafeUnpin for JsxElement
impl UnwindSafe for JsxElement
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