pub enum AttrPair {
KeyValue {
key: String,
value: AttrValue,
},
Conditional {
test: Value,
then_attrs: Vec<AttrPair>,
else_attrs: Vec<AttrPair>,
},
}Expand description
An attribute-list entry inside a <tag …> or <?pi …?> — a key/value pair or
a conditional set of pairs (Perl translate_avpairs).
Variants§
Trait Implementations§
impl Eq for AttrPair
impl StructuralPartialEq for AttrPair
Auto Trait Implementations§
impl Freeze for AttrPair
impl RefUnwindSafe for AttrPair
impl Send for AttrPair
impl Sync for AttrPair
impl Unpin for AttrPair
impl UnsafeUnpin for AttrPair
impl UnwindSafe for AttrPair
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more