Trait ba2::Reader

source ·
pub trait Reader<T>: Sealed {
    type Error;
    type Item;

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

A trait that enables reading from various sources.

Required Associated Types§

Required Methods§

source

fn read(source: T) -> Result<Self::Item, Self::Error>

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

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Reader<&File> for ba2::fo4::Archive<'static>

§

type Error = Error

§

type Item = (Archive<'static>, Options)

source§

impl Reader<&File> for ba2::tes3::Archive<'static>

§

type Error = Error

§

type Item = Archive<'static>

source§

impl Reader<&File> for File<'static>

§

type Error = Error

§

type Item = File<'static>

source§

impl Reader<&File> for ba2::tes4::Archive<'static>

§

type Error = Error

§

type Item = (Archive<'static>, Options)

source§

impl Reader<&Path> for ba2::fo4::Archive<'static>

§

type Error = Error

§

type Item = (Archive<'static>, Options)

source§

impl Reader<&Path> for ba2::tes3::Archive<'static>

§

type Error = Error

§

type Item = Archive<'static>

source§

impl Reader<&Path> for File<'static>

§

type Error = Error

§

type Item = File<'static>

source§

impl Reader<&Path> for ba2::tes4::Archive<'static>

§

type Error = Error

§

type Item = (Archive<'static>, Options)

source§

impl<'bytes> Reader<Borrowed<'bytes>> for ba2::fo4::Archive<'bytes>

§

type Error = Error

§

type Item = (Archive<'bytes>, Options)

source§

impl<'bytes> Reader<Borrowed<'bytes>> for ba2::tes3::Archive<'bytes>

§

type Error = Error

§

type Item = Archive<'bytes>

source§

impl<'bytes> Reader<Borrowed<'bytes>> for File<'bytes>

§

type Error = Error

§

type Item = File<'bytes>

source§

impl<'bytes> Reader<Borrowed<'bytes>> for ba2::tes4::Archive<'bytes>

§

type Error = Error

§

type Item = (Archive<'bytes>, Options)

source§

impl<'bytes> Reader<Copied<'bytes>> for ba2::fo4::Archive<'static>

§

type Error = Error

§

type Item = (Archive<'static>, Options)

source§

impl<'bytes> Reader<Copied<'bytes>> for ba2::tes3::Archive<'static>

§

type Error = Error

§

type Item = Archive<'static>

source§

impl<'bytes> Reader<Copied<'bytes>> for File<'static>

§

type Error = Error

§

type Item = File<'static>

source§

impl<'bytes> Reader<Copied<'bytes>> for ba2::tes4::Archive<'static>

§

type Error = Error

§

type Item = (Archive<'static>, Options)