pub struct WriteOptions { /* private fields */ }Expand description
How far writing a tree out may go.
A tree keeps each folder once, however many places the folder has in it, and writing it out makes the folder at every one of those places. So a tree of a few small lists can stand for more folders than any disk holds: a folder with two names for one folder, a hundred deep. Both limits are held before anything is written.
Implementations§
Source§impl WriteOptions
impl WriteOptions
Sourcepub fn new() -> Self
pub fn new() -> Self
At most DEFAULT_MAX_WRITTEN_ENTRIES files and folders, and as many
bytes as the tree has.
Sourcepub fn max_entries(self, most: u64) -> Self
pub fn max_entries(self, most: u64) -> Self
The most files and folders that may be made, the top one counted.
Trait Implementations§
Source§impl Clone for WriteOptions
impl Clone for WriteOptions
impl Copy for WriteOptions
Source§impl Debug for WriteOptions
impl Debug for WriteOptions
Source§impl Default for WriteOptions
impl Default for WriteOptions
impl Eq for WriteOptions
Source§impl PartialEq for WriteOptions
impl PartialEq for WriteOptions
impl StructuralPartialEq for WriteOptions
Auto Trait Implementations§
impl Forget for WriteOptions
impl Freeze for WriteOptions
impl Move for WriteOptions
impl RefUnwindSafe for WriteOptions
impl Send for WriteOptions
impl Sync for WriteOptions
impl Unpin for WriteOptions
impl UnsafeUnpin for WriteOptions
impl UnwindSafe for WriteOptions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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