Enum markdown::mdast::AttributeContent
source · pub enum AttributeContent {
Expression {
value: String,
stops: Vec<Stop>,
},
Property(MdxJsxAttribute),
}
Expand description
MDX: attribute content.
Variants§
Expression
JSX expression.
> | <a {...b} />
^^^^^^
Property(MdxJsxAttribute)
JSX property.
> | <a b />
^
Trait Implementations§
source§impl Clone for AttributeContent
impl Clone for AttributeContent
source§fn clone(&self) -> AttributeContent
fn clone(&self) -> AttributeContent
Returns a copy 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 AttributeContent
impl Debug for AttributeContent
source§impl PartialEq for AttributeContent
impl PartialEq for AttributeContent
source§fn eq(&self, other: &AttributeContent) -> bool
fn eq(&self, other: &AttributeContent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for AttributeContent
impl StructuralEq for AttributeContent
impl StructuralPartialEq for AttributeContent
Auto Trait Implementations§
impl RefUnwindSafe for AttributeContent
impl Send for AttributeContent
impl Sync for AttributeContent
impl Unpin for AttributeContent
impl UnwindSafe for AttributeContent
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