[−]Struct symbolic::debuginfo::pdb::pdb::StringRef
A reference to a string in the string table.
This type stores an offset into the global string table of the PDB. To retrieve the string
value, use to_raw_string
, to_string_lossy
or methods on StringTable
.
Implementations
impl StringRef
pub fn to_raw_string(
self,
strings: &'s StringTable<'_>
) -> Result<RawString<'s>, Error>
self,
strings: &'s StringTable<'_>
) -> Result<RawString<'s>, Error>
Resolves the raw string value of this reference.
This method errors if the offset is out of bounds of the string table. Use
PDB::string_table
to obtain an instance of the string table.
pub fn to_string_lossy(
self,
strings: &'s StringTable<'_>
) -> Result<Cow<'s, str>, Error>
self,
strings: &'s StringTable<'_>
) -> Result<Cow<'s, str>, Error>
Resolves and decodes the UTF-8 string value of this reference.
This method errors if the offset is out of bounds of the string table. Use
PDB::string_table
to obtain an instance of the string table.
Trait Implementations
impl Clone for StringRef
pub fn clone(&self) -> StringRef
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for StringRef
impl Debug for StringRef
impl Display for StringRef
impl Eq for StringRef
impl From<u32> for StringRef
impl Hash for StringRef
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for StringRef
pub fn cmp(&self, other: &StringRef) -> Ordering
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<StringRef> for StringRef
impl PartialOrd<StringRef> for StringRef
pub fn partial_cmp(&self, other: &StringRef) -> Option<Ordering>
pub fn lt(&self, other: &StringRef) -> bool
pub fn le(&self, other: &StringRef) -> bool
pub fn gt(&self, other: &StringRef) -> bool
pub fn ge(&self, other: &StringRef) -> bool
impl StructuralEq for StringRef
impl StructuralPartialEq for StringRef
impl<'a> TryFromCtx<'a, Endian, [u8]> for StringRef
Auto Trait Implementations
impl RefUnwindSafe for StringRef
[src]
impl Send for StringRef
[src]
impl Sync for StringRef
[src]
impl Unpin for StringRef
[src]
impl UnwindSafe for StringRef
[src]
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,
pub 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> RuleType for T where
T: Eq + Ord + Copy + Debug + Hash,
[src]
T: Eq + Ord + Copy + Debug + Hash,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
pub 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>,