[−][src]Struct 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.
Methods
impl StreamIndex
[src]
pub const fn none() -> Self
[src]
Returns an index that points to no value.
#[must_use]pub fn is_some(self) -> bool
[src]
Returns true
if the index points to a valid value.
#[must_use]pub fn is_none(self) -> bool
[src]
Returns true
if the index indicates the absence of a value.
impl StreamIndex
[src]
pub fn get<'s, S>(self, pdb: &mut PDB<'s, S>) -> Result<Option<Stream<'s>>> where
S: Source<'s> + 's,
[src]
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
Trait Implementations
impl Clone for StreamIndex
[src]
fn clone(&self) -> StreamIndex
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for StreamIndex
[src]
impl Debug for StreamIndex
[src]
impl Default for StreamIndex
[src]
impl Display for StreamIndex
[src]
impl Eq for StreamIndex
[src]
impl Hash for StreamIndex
[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 Ord for StreamIndex
[src]
fn cmp(&self, other: &StreamIndex) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<StreamIndex> for StreamIndex
[src]
fn eq(&self, other: &StreamIndex) -> bool
[src]
fn ne(&self, other: &StreamIndex) -> bool
[src]
impl PartialOrd<StreamIndex> for StreamIndex
[src]
fn partial_cmp(&self, other: &StreamIndex) -> Option<Ordering>
[src]
fn lt(&self, other: &StreamIndex) -> bool
[src]
fn le(&self, other: &StreamIndex) -> bool
[src]
fn gt(&self, other: &StreamIndex) -> bool
[src]
fn ge(&self, other: &StreamIndex) -> bool
[src]
impl StructuralEq for StreamIndex
[src]
impl StructuralPartialEq for StreamIndex
[src]
impl<'a> TryFromCtx<'a, Endian, [u8]> for StreamIndex
[src]
Auto Trait Implementations
impl RefUnwindSafe for StreamIndex
impl Send for StreamIndex
impl Sync for StreamIndex
impl Unpin for StreamIndex
impl UnwindSafe for StreamIndex
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> 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.
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>,