[][src]Struct measureme::stringtable::StringId

#[repr(C)]pub struct StringId(_);

A StringId is used to identify a string in the StringTable. It is either a regular StringId, meaning that it contains the absolute address of a string within the string table data. Or it is "virtual", which means that the address it points to is resolved via the string table index data, that maps virtual StringIds to addresses.

Implementations

impl StringId[src]

pub const INVALID: StringId[src]

pub fn new(id: u32) -> StringId[src]

pub fn new_virtual(id: u32) -> StringId[src]

pub fn is_virtual(self) -> bool[src]

pub fn as_u32(self) -> u32[src]

pub fn from_addr(addr: Addr) -> StringId[src]

pub fn to_addr(self) -> Addr[src]

Trait Implementations

impl Clone for StringId[src]

impl Copy for StringId[src]

impl Debug for StringId[src]

impl Eq for StringId[src]

impl Hash for StringId[src]

impl PartialEq<StringId> for StringId[src]

impl StructuralEq for StringId[src]

impl StructuralPartialEq for StringId[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.