Struct fea_rs::parse::FileSystemResolver
source · pub struct FileSystemResolver { /* private fields */ }Expand description
An implementation of SourceResolver for the local file system.
This is the common case.
Implementations§
Trait Implementations§
source§impl SourceResolver for FileSystemResolver
impl SourceResolver for FileSystemResolver
source§fn get_contents(&self, path: &OsStr) -> Result<Arc<str>, SourceLoadError>
fn get_contents(&self, path: &OsStr) -> Result<Arc<str>, SourceLoadError>
Return the contents of the utf-8 encoded file at the provided path.
source§fn resolve_raw_path(
&self,
path: &OsStr,
included_from: Option<&OsStr>
) -> OsString
fn resolve_raw_path( &self, path: &OsStr, included_from: Option<&OsStr> ) -> OsString
Given a raw path (the
$path in include($path)), return the path to load.
The final path may differ based on which file the include statement occurs
in; the path of the including file (if this is not the root source) is
passed as the second argument. Read moresource§fn canonicalize(&self, path: &OsStr) -> Result<OsString, SourceLoadError>
fn canonicalize(&self, path: &OsStr) -> Result<OsString, SourceLoadError>
If necessary, canonicalize this path. Read more
Auto Trait Implementations§
impl RefUnwindSafe for FileSystemResolver
impl Send for FileSystemResolver
impl Sync for FileSystemResolver
impl Unpin for FileSystemResolver
impl UnwindSafe for FileSystemResolver
Blanket Implementations§
source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere U: FromObjRef<T>,
source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.