Struct bonsaidb_files::direct::FileBuilder
source · pub struct FileBuilder<'a, Config>where
Config: FileConfig,{ /* private fields */ }
Expand description
A builder to create a File
.
Implementations§
source§impl<'a, Config: FileConfig> FileBuilder<'a, Config>
impl<'a, Config: FileConfig> FileBuilder<'a, Config>
sourcepub fn at_path<Path: Into<String>>(self, path: Path) -> Self
pub fn at_path<Path: Into<String>>(self, path: Path) -> Self
Creates this file at path
. This does not change the file’s name
specified when creating the builder.
Trait Implementations§
source§impl<'a, Config> Clone for FileBuilder<'a, Config>
impl<'a, Config> Clone for FileBuilder<'a, Config>
source§fn clone(&self) -> FileBuilder<'a, Config>
fn clone(&self) -> FileBuilder<'a, Config>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a, Config> RefUnwindSafe for FileBuilder<'a, Config>
impl<'a, Config> Send for FileBuilder<'a, Config>
impl<'a, Config> Sync for FileBuilder<'a, Config>
impl<'a, Config> Unpin for FileBuilder<'a, Config>
impl<'a, Config> UnwindSafe for FileBuilder<'a, Config>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more