pub struct MapEntryKey {
pub index: Spanned<MapEntryIndex>,
pub variant: Spanned<IndexVariantName>,
}Expand description
A single key in a map literal entry: Index.Variant
Fields§
§index: Spanned<MapEntryIndex>§variant: Spanned<IndexVariantName>Trait Implementations§
Source§impl Clone for MapEntryKey
impl Clone for MapEntryKey
Source§fn clone(&self) -> MapEntryKey
fn clone(&self) -> MapEntryKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MapEntryKey
impl Debug for MapEntryKey
Source§impl FormatEquivalent for MapEntryKey
impl FormatEquivalent for MapEntryKey
Source§fn format_equivalent(&self, other: &Self) -> bool
fn format_equivalent(&self, other: &Self) -> bool
Returns
true if self and other are equivalent up to formatting.Auto Trait Implementations§
impl Freeze for MapEntryKey
impl RefUnwindSafe for MapEntryKey
impl Send for MapEntryKey
impl Sync for MapEntryKey
impl Unpin for MapEntryKey
impl UnsafeUnpin for MapEntryKey
impl UnwindSafe for MapEntryKey
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