pub struct FsDataProvider { /* private fields */ }
Expand description

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

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

Formats the value using the given formatter. Read more

Query the provider for data, returning the result. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Query the provider for data, returning the result. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.