Struct pdb::StreamIndex
source · [−]pub struct StreamIndex(pub u16);
Expand description
Tuple Fields
0: u16
Implementations
sourceimpl StreamIndex
impl StreamIndex
sourceimpl StreamIndex
impl StreamIndex
sourcepub fn get<'s, S>(self, pdb: &mut PDB<'s, S>) -> Result<Option<Stream<'s>>> where
S: Source<'s> + 's,
pub fn get<'s, S>(self, pdb: &mut PDB<'s, S>) -> Result<Option<Stream<'s>>> 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
Trait Implementations
sourceimpl Clone for StreamIndex
impl Clone for StreamIndex
sourcefn clone(&self) -> StreamIndex
fn clone(&self) -> StreamIndex
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StreamIndex
impl Debug for StreamIndex
sourceimpl Default for StreamIndex
impl Default for StreamIndex
sourceimpl Display for StreamIndex
impl Display for StreamIndex
sourceimpl Hash for StreamIndex
impl Hash for StreamIndex
sourceimpl Ord for StreamIndex
impl Ord for StreamIndex
sourceimpl PartialEq<StreamIndex> for StreamIndex
impl PartialEq<StreamIndex> for StreamIndex
sourcefn eq(&self, other: &StreamIndex) -> bool
fn eq(&self, other: &StreamIndex) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &StreamIndex) -> bool
fn ne(&self, other: &StreamIndex) -> bool
This method tests for !=
.
sourceimpl PartialOrd<StreamIndex> for StreamIndex
impl PartialOrd<StreamIndex> for StreamIndex
sourcefn partial_cmp(&self, other: &StreamIndex) -> Option<Ordering>
fn partial_cmp(&self, other: &StreamIndex) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<'a> TryFromCtx<'a, Endian, [u8]> for StreamIndex
impl<'a> TryFromCtx<'a, Endian, [u8]> for StreamIndex
impl Copy for StreamIndex
impl Eq for StreamIndex
impl StructuralEq for StreamIndex
impl StructuralPartialEq for StreamIndex
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more