[−][src]Struct measureme::stringtable::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 StringId
s 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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<StringId> for StringId
[src]
impl StructuralEq for StringId
[src]
impl StructuralPartialEq for StringId
[src]
Auto Trait Implementations
impl RefUnwindSafe for StringId
impl Send for StringId
impl Sync for StringId
impl Unpin for StringId
impl UnwindSafe for StringId
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,