Struct swc_xml_ast::Attribute
source · [−]pub struct Attribute {
pub span: Span,
pub namespace: Option<Namespace>,
pub prefix: Option<JsWord>,
pub name: JsWord,
pub raw_name: Option<JsWord>,
pub value: Option<JsWord>,
pub raw_value: Option<JsWord>,
}
Fields
span: Span
namespace: Option<Namespace>
prefix: Option<JsWord>
name: JsWord
raw_name: Option<JsWord>
value: Option<JsWord>
raw_value: Option<JsWord>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Attribute
impl<'de> Deserialize<'de> for Attribute
sourcefn 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
sourceimpl EqIgnoreSpan for Attribute
impl EqIgnoreSpan for Attribute
fn eq_ignore_span(&self, other: &Self) -> bool
impl Eq for Attribute
impl StructuralEq for Attribute
impl StructuralPartialEq for Attribute
Auto Trait Implementations
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnwindSafe for Attribute
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more