#[non_exhaustive]pub struct IndexWriteOptions<'a> {
pub path: Option<&'a Path>,
pub split: WriteSplitIndexRequest,
}Expand description
Options for IndexFile::write.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.path: Option<&'a Path>Index file to write; None uses GIT_INDEX_FILE or $GIT_DIR/index.
split: WriteSplitIndexRequestSplit-index emission (core.splitIndex decides when not explicit).
Implementations§
Source§impl<'a> IndexWriteOptions<'a>
impl<'a> IndexWriteOptions<'a>
Sourcepub fn with_split(self, split: WriteSplitIndexRequest) -> Self
pub fn with_split(self, split: WriteSplitIndexRequest) -> Self
Sets split.
Trait Implementations§
Source§impl<'a> Clone for IndexWriteOptions<'a>
impl<'a> Clone for IndexWriteOptions<'a>
impl<'a> Copy for IndexWriteOptions<'a>
Source§impl<'a> Debug for IndexWriteOptions<'a>
impl<'a> Debug for IndexWriteOptions<'a>
Auto Trait Implementations§
impl<'a> Forget for IndexWriteOptions<'a>
impl<'a> Freeze for IndexWriteOptions<'a>
impl<'a> RefUnwindSafe for IndexWriteOptions<'a>
impl<'a> Send for IndexWriteOptions<'a>
impl<'a> Sync for IndexWriteOptions<'a>
impl<'a> Unpin for IndexWriteOptions<'a>
impl<'a> UnsafeUnpin for IndexWriteOptions<'a>
impl<'a> UnwindSafe for IndexWriteOptions<'a>
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