pub struct LookupResult<'a> {
pub id: u32,
pub name: &'a str,
}Expand description
The result of a successful indexed lookup.
Borrows the name string from the owning NameIndex to avoid allocation.
Fields§
§id: u32The compact identifier assigned at insertion time.
name: &'a strThe string form of the matched name.
Trait Implementations§
Source§impl<'a> Clone for LookupResult<'a>
impl<'a> Clone for LookupResult<'a>
Source§fn clone(&self) -> LookupResult<'a>
fn clone(&self) -> LookupResult<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for LookupResult<'a>
impl<'a> Debug for LookupResult<'a>
Source§impl<'a> PartialEq for LookupResult<'a>
impl<'a> PartialEq for LookupResult<'a>
impl<'a> Copy for LookupResult<'a>
impl<'a> Eq for LookupResult<'a>
impl<'a> StructuralPartialEq for LookupResult<'a>
Auto Trait Implementations§
impl<'a> Freeze for LookupResult<'a>
impl<'a> RefUnwindSafe for LookupResult<'a>
impl<'a> Send for LookupResult<'a>
impl<'a> Sync for LookupResult<'a>
impl<'a> Unpin for LookupResult<'a>
impl<'a> UnsafeUnpin for LookupResult<'a>
impl<'a> UnwindSafe for LookupResult<'a>
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