pub enum DictElement<'a> {
Simple {
key: Expression<'a>,
value: Expression<'a>,
comma: Option<Comma<'a>>,
whitespace_before_colon: ParenthesizableWhitespace<'a>,
whitespace_after_colon: ParenthesizableWhitespace<'a>,
},
Starred(StarredDictElement<'a>),
}
Variants§
Simple
Fields
§
key: Expression<'a>
§
value: Expression<'a>
§
whitespace_before_colon: ParenthesizableWhitespace<'a>
§
whitespace_after_colon: ParenthesizableWhitespace<'a>
Starred(StarredDictElement<'a>)
Trait Implementations§
Source§impl<'a> Clone for DictElement<'a>
impl<'a> Clone for DictElement<'a>
Source§fn clone(&self) -> DictElement<'a>
fn clone(&self) -> DictElement<'a>
Returns a duplicate 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<'a> Debug for DictElement<'a>
impl<'a> Debug for DictElement<'a>
Source§impl<'a> PartialEq for DictElement<'a>
impl<'a> PartialEq for DictElement<'a>
impl<'a> Eq for DictElement<'a>
impl<'a> StructuralPartialEq for DictElement<'a>
Auto Trait Implementations§
impl<'a> Freeze for DictElement<'a>
impl<'a> RefUnwindSafe for DictElement<'a>
impl<'a> Send for DictElement<'a>
impl<'a> Sync for DictElement<'a>
impl<'a> Unpin for DictElement<'a>
impl<'a> UnwindSafe for DictElement<'a>
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