[−][src]Struct rust_bert::resources::CACHE_DIRECTORY
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]
Trait Implementations
impl Clone for CACHE_DIRECTORY[src]
fn clone(&self) -> CACHE_DIRECTORY[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for CACHE_DIRECTORY[src]
impl Debug for CACHE_DIRECTORY[src]
impl Deref for CACHE_DIRECTORY[src]
impl LazyStatic for CACHE_DIRECTORY[src]
fn initialize(lazy: &Self)[src]
Auto Trait Implementations
impl RefUnwindSafe for CACHE_DIRECTORY
impl Send for CACHE_DIRECTORY
impl Sync for CACHE_DIRECTORY
impl Unpin for CACHE_DIRECTORY
impl UnwindSafe for CACHE_DIRECTORY
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,