pub struct Key<'de> {
pub name: Cow<'de, str>,
pub span: Span,
}
Expand description
A toml table key
Fields§
§name: Cow<'de, str>
The key itself, in most cases it will be borrowed, but may be owned if escape characters are present in the original source
span: Span
The span for the key in the original document
Trait Implementations§
source§impl<'de> Ord for Key<'de>
impl<'de> Ord for Key<'de>
source§impl<'de> PartialEq for Key<'de>
impl<'de> PartialEq for Key<'de>
source§impl<'de> PartialOrd for Key<'de>
impl<'de> PartialOrd for Key<'de>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<'de> Eq for Key<'de>
Auto Trait Implementations§
impl<'de> Freeze for Key<'de>
impl<'de> RefUnwindSafe for Key<'de>
impl<'de> Send for Key<'de>
impl<'de> Sync for Key<'de>
impl<'de> Unpin for Key<'de>
impl<'de> UnwindSafe for Key<'de>
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)