Skip to main content

OpenOptionsExt

Trait OpenOptionsExt 

Source
pub trait OpenOptionsExt {
    // Required methods
    fn open_if_not_exists(&self, path: impl AsRef<Path>) -> Result<Option<File>>;
    fn open_if_exists(&self, path: impl AsRef<Path>) -> Result<Option<File>>;
}

Required Methods§

Source

fn open_if_not_exists(&self, path: impl AsRef<Path>) -> Result<Option<File>>

Source

fn open_if_exists(&self, path: impl AsRef<Path>) -> Result<Option<File>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl OpenOptionsExt for OpenOptions

Source§

fn open_if_not_exists(&self, path: impl AsRef<Path>) -> Result<Option<File>>

Source§

fn open_if_exists(&self, path: impl AsRef<Path>) -> Result<Option<File>>

Implementors§