pub enum OutputHashMode {
Flat,
Recursive,
}Expand description
Whether the FOD describes the hash of the raw contents (only possible if it’s a single file), or a digest over the NAR representation of the contents.
Variants§
Implementations§
Source§impl OutputHashMode
impl OutputHashMode
pub const fn as_mode_prefix(&self) -> &'static str
Trait Implementations§
Source§impl Clone for OutputHashMode
impl Clone for OutputHashMode
Source§fn clone(&self) -> OutputHashMode
fn clone(&self) -> OutputHashMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OutputHashMode
impl Debug for OutputHashMode
Source§impl Default for OutputHashMode
impl Default for OutputHashMode
Source§fn default() -> OutputHashMode
fn default() -> OutputHashMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OutputHashMode
impl<'de> Deserialize<'de> for OutputHashMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromStr for OutputHashMode
impl FromStr for OutputHashMode
Source§impl PartialEq for OutputHashMode
impl PartialEq for OutputHashMode
Source§fn eq(&self, other: &OutputHashMode) -> bool
fn eq(&self, other: &OutputHashMode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OutputHashMode
impl Serialize for OutputHashMode
impl Eq for OutputHashMode
impl StructuralPartialEq for OutputHashMode
Auto Trait Implementations§
impl Freeze for OutputHashMode
impl RefUnwindSafe for OutputHashMode
impl Send for OutputHashMode
impl Sync for OutputHashMode
impl Unpin for OutputHashMode
impl UnsafeUnpin for OutputHashMode
impl UnwindSafe for OutputHashMode
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.