#[repr(C)]pub struct DerefEntry {
pub source_type_hash: u64,
pub source_type_offset: u32,
pub target_type_offset: u32,
}Expand description
Deref target mapping entry for resolving autoderef chains (e.g. String -> str).
Fields§
§source_type_hash: u6464-bit FNV-1a hash of the source type canonical path (e.g. “alloc::string::String”)
source_type_offset: u32Offset in string pool for source type canonical path
target_type_offset: u32Offset in string pool for target type canonical path (e.g. “core::primitive::str”)
Implementations§
Source§impl DerefEntry
impl DerefEntry
Trait Implementations§
Source§impl Clone for DerefEntry
impl Clone for DerefEntry
impl Copy for DerefEntry
Source§impl Debug for DerefEntry
impl Debug for DerefEntry
Source§impl Default for DerefEntry
impl Default for DerefEntry
impl Eq for DerefEntry
Source§impl PartialEq for DerefEntry
impl PartialEq for DerefEntry
impl StructuralPartialEq for DerefEntry
Auto Trait Implementations§
impl Forget for DerefEntry
impl Freeze for DerefEntry
impl Move for DerefEntry
impl RefUnwindSafe for DerefEntry
impl Send for DerefEntry
impl Sync for DerefEntry
impl Unpin for DerefEntry
impl UnsafeUnpin for DerefEntry
impl UnwindSafe for DerefEntry
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