pub struct StreamIndex(pub u16);Expand description
Tuple Fields§
§0: u16Implementations§
Source§impl StreamIndex
impl StreamIndex
Source§impl 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::StreamNotFoundif the PDB does not contain this streamError::IoErrorif returned by theSourceError::PageReferenceOutOfRangeif the PDB file seems corrupt
Trait Implementations§
Source§impl Clone for StreamIndex
impl Clone for StreamIndex
Source§fn clone(&self) -> StreamIndex
fn clone(&self) -> StreamIndex
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StreamIndex
impl Debug for StreamIndex
Source§impl Default for StreamIndex
impl Default for StreamIndex
Source§impl Display for StreamIndex
impl Display for StreamIndex
Source§impl Hash for StreamIndex
impl Hash for StreamIndex
Source§impl Ord for StreamIndex
impl Ord for StreamIndex
Source§fn cmp(&self, other: &StreamIndex) -> Ordering
fn cmp(&self, other: &StreamIndex) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StreamIndex
impl PartialEq for StreamIndex
Source§impl PartialOrd for StreamIndex
impl PartialOrd for StreamIndex
Source§impl<'a> TryFromCtx<'a, Endian> for StreamIndex
impl<'a> TryFromCtx<'a, Endian> for StreamIndex
impl Copy for StreamIndex
impl Eq for StreamIndex
impl StructuralPartialEq for StreamIndex
Auto Trait Implementations§
impl Freeze for StreamIndex
impl RefUnwindSafe for StreamIndex
impl Send for StreamIndex
impl Sync for StreamIndex
impl Unpin for StreamIndex
impl UnwindSafe for StreamIndex
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more