pub struct Attr {
pub name: String,
pub value: Value,
pub pos: Pos,
}Expand description
An attribute: name="…", name={…}, or a bare name.
Fields§
§name: StringWhat it sets, like fill, or a prop an imported design takes.
value: ValueIts value: true for a bare attribute.
pos: PosWhere its name starts.
Trait Implementations§
impl StructuralPartialEq for Attr
Auto Trait Implementations§
impl Forget for Attr
impl Freeze for Attrwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
PhantomData<(String, Value)>: Freeze,
impl Move for Attr
impl RefUnwindSafe for Attr
impl Send for Attrwhere
RawVecInner: Send,
impl Sync for Attrwhere
RawVecInner: Sync,
impl Unpin for Attr
impl UnsafeUnpin for Attrwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
PhantomData<(String, Value)>: UnsafeUnpin,
impl UnwindSafe for Attrwhere
RawVecInner: UnwindSafe,
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