pub struct Key<'de> {
pub name: &'de str,
pub span: Span,
}Expand description
Fields§
§name: &'de strThe key name.
span: SpanThe byte-offset span of the key in the source document.
Implementations§
Trait Implementations§
impl<'de> Copy for Key<'de>
impl Eq for Key<'_>
Source§impl Ord for Key<'_>
impl Ord for Key<'_>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
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> UnsafeUnpin 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