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 Ord for Key<'_>
impl Ord for Key<'_>
Source§impl PartialOrd for Key<'_>
impl PartialOrd for Key<'_>
impl Eq for Key<'_>
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