pub struct PycReader<'config, R> { /* private fields */ }Expand description
现代化的惰性 .pyc 文件读取器
Implementations§
Source§impl<'config, R> PycReader<'config, R>
impl<'config, R> PycReader<'config, R>
Sourcepub fn new(reader: R, config: &'config PycReadConfig) -> Self
pub fn new(reader: R, config: &'config PycReadConfig) -> Self
创建一个新的 PycReader 实例
Sourcepub fn finish(self) -> GaiaDiagnostics<PythonProgram>
pub fn finish(self) -> GaiaDiagnostics<PythonProgram>
完成读取并返回 PythonProgram 结果
Trait Implementations§
Auto Trait Implementations§
impl<'config, R> !Freeze for PycReader<'config, R>
impl<'config, R> !RefUnwindSafe for PycReader<'config, R>
impl<'config, R> Send for PycReader<'config, R>where
R: Send,
impl<'config, R> !Sync for PycReader<'config, R>
impl<'config, R> Unpin for PycReader<'config, R>where
R: Unpin,
impl<'config, R> !UnwindSafe for PycReader<'config, R>
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