pub struct PlexonReader;Expand description
The Plexon reader.
Trait Implementations§
Source§impl Clone for PlexonReader
impl Clone for PlexonReader
impl Copy for PlexonReader
Source§impl Debug for PlexonReader
impl Debug for PlexonReader
Source§impl Default for PlexonReader
impl Default for PlexonReader
Source§impl FormatReader for PlexonReader
impl FormatReader for PlexonReader
Source§fn assurance(&self) -> Option<&'static AssuranceProfile>
fn assurance(&self) -> Option<&'static AssuranceProfile>
The reader’s assurance profile (its crate’s
src/assurance.rs): how to fingerprint a
file’s variant and which variants the development corpus validates. None (the
default) makes every file of the format unvalidated.Source§fn descriptor(&self) -> FormatDescriptor
fn descriptor(&self) -> FormatDescriptor
Static description of the format (id, name, extensions, known gaps).
Source§fn sniff(&self, head: &[u8], path: &Path) -> Option<Detection>
fn sniff(&self, head: &[u8], path: &Path) -> Option<Detection>
Inspect the first bytes (up to 64 KiB) and the path; return
None if this is not ours.Source§fn reads_any_source(&self) -> bool
fn reads_any_source(&self) -> bool
True when
open_input reads any Input (memory, host
callbacks), not only local paths.Source§fn open_input(&self, input: &Input) -> Result<Box<dyn Dataset>>
fn open_input(&self, input: &Input) -> Result<Box<dyn Dataset>>
Open an
Input: a local path, a buffer in memory, or a source the host provides.
Readers that read through Input::fs override it (and make open a thin wrapper);
the default opens local inputs by path and reports every other source as unsupported
(exit 6), so a reader that does not read through byte sources never touches the local disk
for a buffer that merely has the same name.Auto Trait Implementations§
impl Freeze for PlexonReader
impl RefUnwindSafe for PlexonReader
impl Send for PlexonReader
impl Sync for PlexonReader
impl Unpin for PlexonReader
impl UnsafeUnpin for PlexonReader
impl UnwindSafe for PlexonReader
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more