Struct pdb::StreamIndex [−][src]
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 get
to load data for this stream.
Implementations
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]
pub 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]
pub 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]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
[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]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[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,
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> 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>,