ba2

Trait ReaderWithOptions

Source
pub trait ReaderWithOptions<T>: Sealed + Sized {
    type Error;
    type Options;

    // Required method
    fn read(source: T, options: &Self::Options) -> Result<Self, Self::Error>;
}
Expand description

A trait that enables reading from various sources, with configuration options.

Required Associated Types§

Required Methods§

Source

fn read(source: T, options: &Self::Options) -> Result<Self, Self::Error>

Reads an instance of Self::Item from the given source, using the given options.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl ReaderWithOptions<&File> for ba2::fo4::File<'static>

Source§

impl ReaderWithOptions<&File> for ba2::tes4::File<'static>

Source§

impl ReaderWithOptions<&Path> for ba2::fo4::File<'static>

Source§

impl ReaderWithOptions<&Path> for ba2::tes4::File<'static>

Source§

impl<'bytes> ReaderWithOptions<Borrowed<'bytes>> for ba2::fo4::File<'bytes>

Source§

impl<'bytes> ReaderWithOptions<Borrowed<'bytes>> for ba2::tes4::File<'bytes>

Source§

impl<'bytes> ReaderWithOptions<Copied<'bytes>> for ba2::fo4::File<'static>

Source§

impl<'bytes> ReaderWithOptions<Copied<'bytes>> for ba2::tes4::File<'static>