pub struct EmbeddedSource<'data> { /* private fields */ }Expand description
Lazy Embedded Source file reader.
Implementations§
Source§impl<'data, 'object> EmbeddedSource<'data>
impl<'data, 'object> EmbeddedSource<'data>
Sourcepub fn get_path(&'object self) -> &'object str
pub fn get_path(&'object self) -> &'object str
Returns the build-time path associated with this source file.
Sourcepub fn get_contents(&self) -> Result<Cow<'data, [u8]>, FormatError>
pub fn get_contents(&self) -> Result<Cow<'data, [u8]>, FormatError>
Reads the source file contents from the Portable PDB.
Trait Implementations§
Source§impl<'data> Clone for EmbeddedSource<'data>
impl<'data> Clone for EmbeddedSource<'data>
Source§fn clone(&self) -> EmbeddedSource<'data>
fn clone(&self) -> EmbeddedSource<'data>
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 moreAuto Trait Implementations§
impl<'data> Freeze for EmbeddedSource<'data>
impl<'data> RefUnwindSafe for EmbeddedSource<'data>
impl<'data> Send for EmbeddedSource<'data>
impl<'data> Sync for EmbeddedSource<'data>
impl<'data> Unpin for EmbeddedSource<'data>
impl<'data> UnwindSafe for EmbeddedSource<'data>
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