pub struct Lookup {
pub id: PropId,
pub written: &'static str,
pub renamed_from: Option<&'static str>,
}Expand description
What looking a key up found.
Fields§
§id: PropId§written: &'static strThe canonical key or alias that matched the lookup, so diagnostics can repeat the key the user actually wrote without treating a supported alias as a deprecated rename.
renamed_from: Option<&'static str>The key that was asked for, when it is not the key that was found — an old name still in somebody’s config file. Carried so a warning can name it.
Trait Implementations§
impl Copy for Lookup
impl StructuralPartialEq for Lookup
Auto Trait Implementations§
impl Freeze for Lookup
impl RefUnwindSafe for Lookup
impl Send for Lookup
impl Sync for Lookup
impl Unpin for Lookup
impl UnsafeUnpin for Lookup
impl UnwindSafe for Lookup
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