[][src]Struct rust_bert::resources::CACHE_DIRECTORY

pub struct CACHE_DIRECTORY { /* fields omitted */ }

Global cache directory

If the environment variable RUSTBERT_CACHE is set, will save the cache model files at that location. Otherwise defaults to ~/.cache/.rustbert.

Methods from Deref<Target = PathBuf>

pub fn as_path(&self) -> &Path1.0.0[src]

Coerces to a Path slice.

Examples

use std::path::{Path, PathBuf};

let p = PathBuf::from("/test");
assert_eq!(Path::new("/test"), p.as_path());

pub fn capacity(&self) -> usize1.44.0[src]

Invokes capacity on the underlying instance of OsString.

Trait Implementations

impl Clone for CACHE_DIRECTORY[src]

impl Copy for CACHE_DIRECTORY[src]

impl Debug for CACHE_DIRECTORY[src]

impl Deref for CACHE_DIRECTORY[src]

type Target = PathBuf

The resulting type after dereferencing.

impl LazyStatic for CACHE_DIRECTORY[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.