pub fn new(
        sha256: impl TryInto<SampleHash>,
        sha1: impl TryInto<SampleHash>,
        md5: impl TryInto<SampleHash>,
    ) -> GenericResult<Self> {
        Ok(ContentHash {
            sha256: check_hashtype!(unwrap_try_into(sha256)? => sha256)?,
            sha1: check_hashtype!(unwrap_try_into(sha1)? => sha1)?,
            md5: check_hashtype!(unwrap_try_into(md5)? => md5)?,
        })
    }
/// create new object manually (not recommened)
///
/// # Example
///
/// ```
/// use iocutil::prelude::*;
/// let x = ContentHash::new(
///     "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
///     "da39a3ee5e6b4b0d3255bfef95601890afd80709",
///     "d41d8cd98f00b204e9800998ecf8427e"
/// ).unwrap();
/// assert_eq!(x, ContentHash::default());
///
/// let y = ContentHash::new("a", "b", "c");
/// assert!(y.is_err());
///
/// let z = ContentHash::new(
///     "da39a3ee5e6b4b0d3255bfef95601890afd80709",
///     "d41d8cd98f00b204e9800998ecf8427e",
///     "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
/// );
/// assert!(z.is_err());
/// ```
create new object manually (not recommened)
create new object manually ( not recommened )
pub fn new(
        sha256: impl TryInto<SampleHash>,
        sha1: impl TryInto<SampleHash>,
        md5: impl TryInto<SampleHash>,
    ) -> GenericResult<Self> {
        Ok(ContentHash {
            sha256: check_hashtype!(unwrap_try_into(sha256)? => sha256)?,
            sha1: check_hashtype!(unwrap_try_into(sha1)? => sha1)?,
            md5: check_hashtype!(unwrap_try_into(md5)? => md5)?,
        })
    }
pub fn new ( sha256 : impl TryInto < SampleHash > , sha1 : impl TryInto < SampleHash > , md5 : impl TryInto < SampleHash > , ) -> GenericResult < Self > { Ok ( ContentHash { sha256 : check_hashtype ! ( unwrap_try_into ( sha256 ) sha256 ) ? , sha1 : check_hashtype ! ( unwrap_try_into ( sha1 ) sha1 ) ? , md5 : check_hashtype ! ( unwrap_try_into ( md5 ) md5 ) ? , } ) }
create new object manually (not recommened)
create new object manually ( not recommened )
sha256
impl TryInto<SampleHash>
sha1
impl TryInto<SampleHash>
md5
impl TryInto<SampleHash>
example
None