pub enum AttrPart {
Literal(String),
Value(Value),
Conditional {
test: Value,
then_val: Value,
else_val: Value,
},
}Expand description
One piece of an AttrValue.
Variants§
Literal(String)
Value(Value)
Conditional
?test(ifval)(elseval) inside a quoted attribute string — branches are
single values (Perl translate_string).
Trait Implementations§
impl Eq for AttrPart
impl StructuralPartialEq for AttrPart
Auto Trait Implementations§
impl Freeze for AttrPart
impl RefUnwindSafe for AttrPart
impl Send for AttrPart
impl Sync for AttrPart
impl Unpin for AttrPart
impl UnsafeUnpin for AttrPart
impl UnwindSafe for AttrPart
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