pub struct LuacReader<'config, R> { /* private fields */ }Expand description
负责解析 .pyc 文件到 LuacFile 的读取器
Implementations§
Source§impl<'config, R> LuacReader<'config, R>
impl<'config, R> LuacReader<'config, R>
pub fn new(reader: R, config: &'config LuacReadConfig) -> Self
pub fn get_offset(&self) -> u64
pub fn set_offset(&mut self, offset: u64) -> Result<(), GaiaError>where
R: Seek,
Trait Implementations§
Auto Trait Implementations§
impl<'config, R> Freeze for LuacReader<'config, R>where
R: Freeze,
impl<'config, R> !RefUnwindSafe for LuacReader<'config, R>
impl<'config, R> Send for LuacReader<'config, R>where
R: Send,
impl<'config, R> Sync for LuacReader<'config, R>where
R: Sync,
impl<'config, R> Unpin for LuacReader<'config, R>where
R: Unpin,
impl<'config, R> !UnwindSafe for LuacReader<'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