[−]Struct symbolic::debuginfo::pdb::pdb::StreamIndex
Index of a PDB stream.
This index can either refer to a stream, or indicate the absence of a stream. Check is_none
to see whether a stream should exist.
Use StreamIndex::get
to load data for this stream.
Implementations
impl StreamIndex
pub fn get<'s, S>(
self,
pdb: &mut PDB<'s, S>
) -> Result<Option<Stream<'s>>, Error> where
S: Source<'s> + 's,
self,
pdb: &mut PDB<'s, S>
) -> Result<Option<Stream<'s>>, Error> where
S: Source<'s> + 's,
Load the raw data of this stream from the PDB.
Returns None
if this index is none. Otherwise, this will try to read the stream from the
PDB, which might fail if the stream is missing.
Errors
Error::StreamNotFound
if the PDB does not contain this streamError::IoError
if returned by theSource
Error::PageReferenceOutOfRange
if the PDB file seems corrupt
impl StreamIndex
pub const fn none() -> StreamIndex
Returns an index that points to no value.
#[must_use]pub fn is_some(self) -> bool
Returns true
if the index points to a valid value.
#[must_use]pub fn is_none(self) -> bool
Returns true
if the index indicates the absence of a value.
Trait Implementations
impl Clone for StreamIndex
pub fn clone(&self) -> StreamIndex
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for StreamIndex
impl Debug for StreamIndex
impl Default for StreamIndex
pub fn default() -> StreamIndex
impl Display for StreamIndex
impl Eq for StreamIndex
impl Hash for StreamIndex
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 StreamIndex
pub fn cmp(&self, other: &StreamIndex) -> 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<StreamIndex> for StreamIndex
pub fn eq(&self, other: &StreamIndex) -> bool
pub fn ne(&self, other: &StreamIndex) -> bool
impl PartialOrd<StreamIndex> for StreamIndex
pub fn partial_cmp(&self, other: &StreamIndex) -> Option<Ordering>
pub fn lt(&self, other: &StreamIndex) -> bool
pub fn le(&self, other: &StreamIndex) -> bool
pub fn gt(&self, other: &StreamIndex) -> bool
pub fn ge(&self, other: &StreamIndex) -> bool
impl StructuralEq for StreamIndex
impl StructuralPartialEq for StreamIndex
impl<'a> TryFromCtx<'a, Endian, [u8]> for StreamIndex
type Error = Error
pub fn try_from_ctx(
this: &'a [u8],
le: Endian
) -> Result<(StreamIndex, usize), Error>
this: &'a [u8],
le: Endian
) -> Result<(StreamIndex, usize), Error>
Auto Trait Implementations
impl RefUnwindSafe for StreamIndex
[src]
impl Send for StreamIndex
[src]
impl Sync for StreamIndex
[src]
impl Unpin for StreamIndex
[src]
impl UnwindSafe for StreamIndex
[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>,