Struct git2::StashSaveOptions
source · pub struct StashSaveOptions<'a> { /* private fields */ }
Expand description
Stash application options structure
Implementations§
source§impl<'a> StashSaveOptions<'a>
impl<'a> StashSaveOptions<'a>
sourcepub fn flags(&mut self, flags: Option<StashFlags>) -> &mut Self
pub fn flags(&mut self, flags: Option<StashFlags>) -> &mut Self
Customize optional flags
field
sourcepub fn pathspec<T: IntoCString>(&mut self, pathspec: T) -> &mut Self
pub fn pathspec<T: IntoCString>(&mut self, pathspec: T) -> &mut Self
Add to the array of paths patterns to build the stash.
sourcepub unsafe fn raw(&mut self) -> *const git_stash_save_options
pub unsafe fn raw(&mut self) -> *const git_stash_save_options
Acquire a pointer to the underlying raw options.
This function is unsafe as the pointer is only valid so long as this structure is not moved, modified, or used elsewhere.
Auto Trait Implementations§
impl<'a> Freeze for StashSaveOptions<'a>
impl<'a> RefUnwindSafe for StashSaveOptions<'a>
impl<'a> !Send for StashSaveOptions<'a>
impl<'a> !Sync for StashSaveOptions<'a>
impl<'a> Unpin for StashSaveOptions<'a>
impl<'a> UnwindSafe for StashSaveOptions<'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