Struct protobuf_native::compiler::VirtualSourceTree
source · pub struct VirtualSourceTree { /* private fields */ }
Expand description
An implementation of SourceTree
which stores files in memory.
Implementations§
Trait Implementations§
source§impl Drop for VirtualSourceTree
impl Drop for VirtualSourceTree
source§impl SourceTree for VirtualSourceTree
impl SourceTree for VirtualSourceTree
source§fn open<'a>(
self: Pin<&'a mut Self>,
filename: &Path,
) -> Result<Pin<Box<DynZeroCopyInputStream<'a>>>, FileOpenError>
fn open<'a>( self: Pin<&'a mut Self>, filename: &Path, ) -> Result<Pin<Box<DynZeroCopyInputStream<'a>>>, FileOpenError>
Opens the given file and return a stream that reads it. Read more
Auto Trait Implementations§
impl Freeze for VirtualSourceTree
impl RefUnwindSafe for VirtualSourceTree
impl Send for VirtualSourceTree
impl Sync for VirtualSourceTree
impl !Unpin for VirtualSourceTree
impl UnwindSafe for VirtualSourceTree
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