pub enum FileKind {
Nsf {
db_header_size: u32,
},
NotNsf {
reason: String,
},
}Expand description
Result of file-shape identification.
Nsf is returned only when the file-header signature matches AND the
declared DB-header-size is plausible. NotNsf carries a short reason
suitable for surfacing in an operator-facing modal.
Variants§
Nsf
File looks like a valid NSF / NTF / NSG. Returned fields are read from the 6-byte file header; the rest of the file has not yet been parsed.
Fields
NotNsf
File is not an NSF (or is too short / structurally bogus to be
one). reason is a single-sentence English description suitable
for surfacing in a UI.
Implementations§
Trait Implementations§
impl Eq for FileKind
impl StructuralPartialEq for FileKind
Auto Trait Implementations§
impl Freeze for FileKind
impl RefUnwindSafe for FileKind
impl Send for FileKind
impl Sync for FileKind
impl Unpin for FileKind
impl UnsafeUnpin for FileKind
impl UnwindSafe for FileKind
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