Struct ciruela::ImageId
[−]
[src]
pub struct ImageId(_);
Image identifier
This is basically an array of bytes that is hexlified when printing.
The meaning of the type is the hash of all the entries in the index. So basically it can be used as an identified in content-addressed store.
Trait Implementations
impl Clone for ImageId
[src]
fn clone(&self) -> ImageId
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Hash for ImageId
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for ImageId
[src]
fn eq(&self, __arg_0: &ImageId) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ImageId) -> bool
[src]
This method tests for !=
.
impl Eq for ImageId
[src]
impl<'a> From<&'a [u8]> for ImageId
[src]
impl From<Vec<u8>> for ImageId
[src]
impl Debug for ImageId
[src]
impl Display for ImageId
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'a> Deserialize<'a> for ImageId
[src]
fn deserialize<D>(deserializer: D) -> Result<ImageId, D::Error> where
D: Deserializer<'a>,
[src]
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
impl Serialize for ImageId
[src]
fn serialize<S>(&self, ser: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
S: Serializer,
Serialize this value into the given Serde serializer. Read more