Enum gix_index::write::Extensions
source · pub enum Extensions {
All,
Given {
tree_cache: bool,
end_of_index_entry: bool,
},
None,
}
Expand description
A way to specify which of the optional extensions to write.
Variants§
All
Writes all available optional extensions to avoid losing any information.
Given
Only write the given optional extensions, with each extension being marked by a boolean flag.
§Note: mandatory extensions
Mandatory extensions, like sdir
or other lower-case ones, may not be configured here as they need to be present
or absent depending on the state of the index itself and for it to be valid.
Fields
None
Write no optional extension at all for what should be the smallest possible index
Implementations§
source§impl Extensions
impl Extensions
sourcepub fn should_write(&self, signature: Signature) -> Option<Signature>
pub fn should_write(&self, signature: Signature) -> Option<Signature>
Returns Some(signature)
if it should be written out.
Trait Implementations§
source§impl Clone for Extensions
impl Clone for Extensions
source§fn clone(&self) -> Extensions
fn clone(&self) -> Extensions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Extensions
impl Debug for Extensions
source§impl Default for Extensions
impl Default for Extensions
source§fn default() -> Extensions
fn default() -> Extensions
Returns the “default value” for a type. Read more
impl Copy for Extensions
Auto Trait Implementations§
impl Freeze for Extensions
impl RefUnwindSafe for Extensions
impl Send for Extensions
impl Sync for Extensions
impl Unpin for Extensions
impl UnwindSafe for Extensions
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)