Variants
Reader(File)
String(String)
Implementations
sourceimpl PslReader
impl PslReader
pub fn open_or_download<F>(
cache_dir: &Path,
indicator: F
) -> Result<PslReader, Error> where
F: Fn(Box<dyn Fn() + 'static, Global>) -> Result<PslReader, Error>,
pub fn open(cache_dir: &Path) -> Result<PslReader, Error>
pub fn open_from(path: &Path) -> Result<PslReader, Error>
pub fn path(cache_dir: &Path) -> Result<PathBuf, Error>
pub fn download(path: &Path, url: &str) -> Result<(), Error>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PslReader
impl Send for PslReader
impl Sync for PslReader
impl Unpin for PslReader
impl UnwindSafe for PslReader
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IntoSql for T
impl<T> IntoSql for T
sourcefn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
Convert self
to an expression for Diesel’s query builder. Read more
sourcefn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
Convert &self
to an expression for Diesel’s query builder. Read more