pub struct FileEntry {
pub handle: FileHandle,
pub name: String,
pub mode: String,
pub line_num: u32,
pub pending_newlines: u32,
}Expand description
Metadata and handle for one open file.
Fields§
§handle: FileHandle§name: String§mode: String§line_num: u32Current line number (1-based), incremented as newlines are consumed.
pending_newlines: u32Newlines consumed but not yet applied to line_num. Flushed at the
start of the next token read so that line reports the line the
current token is on, not the line after it.
Auto Trait Implementations§
impl !RefUnwindSafe for FileEntry
impl !Sync for FileEntry
impl !UnwindSafe for FileEntry
impl Freeze for FileEntry
impl Send for FileEntry
impl Unpin for FileEntry
impl UnsafeUnpin for FileEntry
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