pub struct TempDirBuilder<'a, 'b> {
pub(crate) builder: Builder<'a, 'b>,
}
Fields§
§builder: Builder<'a, 'b>
Implementations§
Source§impl<'a, 'b> TempDirBuilder<'a, 'b>
impl<'a, 'b> TempDirBuilder<'a, 'b>
pub fn new() -> Self
pub fn prefix<S: AsRef<OsStr> + ?Sized>(&mut self, prefix: &'a S) -> &mut Self
pub fn suffix<S: AsRef<OsStr> + ?Sized>(&mut self, suffix: &'b S) -> &mut Self
pub fn tempdir_in<P: AsRef<Path>>(&self, dir: P) -> Result<TempDir>
pub fn tempdir(&self) -> Result<TempDir>
Auto Trait Implementations§
impl<'a, 'b> Freeze for TempDirBuilder<'a, 'b>
impl<'a, 'b> RefUnwindSafe for TempDirBuilder<'a, 'b>
impl<'a, 'b> Send for TempDirBuilder<'a, 'b>
impl<'a, 'b> Sync for TempDirBuilder<'a, 'b>
impl<'a, 'b> Unpin for TempDirBuilder<'a, 'b>
impl<'a, 'b> UnwindSafe for TempDirBuilder<'a, 'b>
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 56 bytes