Struct icu_provider_fs::FsDataProvider[][src]

pub struct FsDataProvider { /* fields omitted */ }

A data provider that reads ICU4X data from a filesystem directory.

Examples

use icu_provider_fs::FsDataProvider;

let provider = FsDataProvider::try_new("/path/to/data/directory")
    .expect_err("Specify a real directory in the line above");

Implementations

impl FsDataProvider[src]

pub fn try_new<T: Into<PathBuf>>(root: T) -> Result<Self, Error>[src]

Create a new FsDataProvider given a filesystem directory.

Examples

use icu_provider_fs::FsDataProvider;

let provider = FsDataProvider::try_new("/path/to/data/directory")
    .expect_err("Specify a real directory in the line above");

Trait Implementations

impl<'d, T> DataProvider<'d, T> for FsDataProvider where
    T: Deserialize<'d> + Serialize + Clone + Debug + 'd, 
[src]

impl Debug for FsDataProvider[src]

impl PartialEq<FsDataProvider> for FsDataProvider[src]

impl<'de> SerdeDeDataProvider<'de> for FsDataProvider[src]

impl StructuralPartialEq for FsDataProvider[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.