pub struct StdFs;Expand description
ネイティブのファイルシステム(std::fs)
Trait Implementations§
Source§impl Fs for StdFs
Available on non-WebAssembly only.
impl Fs for StdFs
Available on non-WebAssembly only.
fn read(&self, p: &Path) -> Result<Vec<u8>>
Source§fn write_atomic(&self, p: &Path, b: &[u8]) -> Result<()>
fn write_atomic(&self, p: &Path, b: &[u8]) -> Result<()>
書く(途中で落ちても前か新しい中身のどちらかが残る)。既定は
Fs::writefn append(&self, p: &Path, b: &[u8]) -> Result<()>
fn is_file(&self, p: &Path) -> bool
fn is_dir(&self, p: &Path) -> bool
fn create_dir_all(&self, p: &Path) -> Result<()>
fn remove_file(&self, p: &Path) -> Result<()>
fn rename(&self, a: &Path, b: &Path) -> Result<()>
fn canonicalize(&self, p: &Path) -> Result<PathBuf>
Auto Trait Implementations§
impl Freeze for StdFs
impl RefUnwindSafe for StdFs
impl Send for StdFs
impl Sync for StdFs
impl Unpin for StdFs
impl UnsafeUnpin for StdFs
impl UnwindSafe for StdFs
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more