Struct ostree::Checksum [−][src]
A binary SHA256 checksum.
Implementations
impl Checksum
[src]
pub fn from_bytes(bytes: &[u8; 32]) -> Checksum
[src]
Create a Checksum
from a byte array.
This copies the array.
pub fn from_hex(hex_checksum: &str) -> Result<Checksum, ChecksumError>
[src]
Create a Checksum
from a hexadecimal SHA256 string.
pub fn from_base64(b64_checksum: &str) -> Result<Checksum, ChecksumError>
[src]
Create a Checksum
from a base64-encoded String.
pub fn to_hex(&self) -> String
[src]
Convert checksum to hex-encoded string.
pub fn to_base64(&self) -> String
[src]
Convert checksum to base64 string.
Trait Implementations
impl Clone for Checksum
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Checksum
[src]
impl Display for Checksum
[src]
impl Drop for Checksum
[src]
impl Eq for Checksum
[src]
impl FromGlibPtrFull<*mut [*mut u8; 32]> for Checksum
[src]
impl FromGlibPtrFull<*mut [u8; 32]> for Checksum
[src]
impl FromGlibPtrFull<*mut u8> for Checksum
[src]
unsafe fn from_glib_full(ptr: *mut u8) -> Self
[src]
impl FromGlibPtrNone<*mut [u8; 32]> for Checksum
[src]
impl PartialEq<Checksum> for Checksum
[src]
impl Send for Checksum
[src]
Auto Trait Implementations
impl RefUnwindSafe for Checksum
impl !Sync for Checksum
impl Unpin for Checksum
impl UnwindSafe for Checksum
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,