pub struct FormatRegistry { /* private fields */ }Implementations§
Source§impl FormatRegistry
impl FormatRegistry
pub fn new() -> Self
pub fn register( &mut self, probe: impl FormatProbe + 'static, reader: impl DatasetReader + 'static, )
Sourcepub fn detect_vendor(
&self,
path: &Path,
) -> Result<Option<ProbeResult>, WsiError>
pub fn detect_vendor( &self, path: &Path, ) -> Result<Option<ProbeResult>, WsiError>
Probe all backends and return the best detected format without opening it.
Definite confidence beats Likely. First-registered wins ties.
Trait Implementations§
Source§impl Debug for FormatRegistry
impl Debug for FormatRegistry
Source§impl Default for FormatRegistry
impl Default for FormatRegistry
Source§fn default() -> FormatRegistry
fn default() -> FormatRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for FormatRegistry
impl !UnwindSafe for FormatRegistry
impl Freeze for FormatRegistry
impl Send for FormatRegistry
impl Sync for FormatRegistry
impl Unpin for FormatRegistry
impl UnsafeUnpin for FormatRegistry
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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