pub struct InternedString { /* private fields */ }Expand description
A binary-stable, transparent representation of fxt::InternedString.
This structure has the exact same memory layout as the C++ fxt::InternedString
(which is a single const char* pointer pointing to a null-terminated string).
Placing instances of this structure in the special linker section __fxt_interned_string_table
allows them to sit contiguous alongside C++’s own interned strings in the global
string table segment, meaning their trace-ID calculations (this - section_begin)
are safe, exact, and valid.
Implementations§
Trait Implementations§
impl Send for InternedString
impl Sync for InternedString
Auto Trait Implementations§
impl Freeze for InternedString
impl RefUnwindSafe for InternedString
impl Unpin for InternedString
impl UnsafeUnpin for InternedString
impl UnwindSafe for InternedString
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