pub struct PlateReader;Expand description
The plate-reader export reader.
Trait Implementations§
Source§impl Clone for PlateReader
impl Clone for PlateReader
impl Copy for PlateReader
Source§impl Debug for PlateReader
impl Debug for PlateReader
Source§impl Default for PlateReader
impl Default for PlateReader
Source§impl FormatReader for PlateReader
impl FormatReader for PlateReader
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 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.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.Auto Trait Implementations§
impl Freeze for PlateReader
impl RefUnwindSafe for PlateReader
impl Send for PlateReader
impl Sync for PlateReader
impl Unpin for PlateReader
impl UnsafeUnpin for PlateReader
impl UnwindSafe for PlateReader
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