pub struct Algorithm<'a> {
pub name: &'a str,
pub bitsize: isize,
}Fields§
§name: &'a str§bitsize: isizeImplementations§
Trait Implementations§
Source§impl CryptoHash for Algorithm<'static>
impl CryptoHash for Algorithm<'static>
fn available(self) -> bool
fn string(self) -> &'static str
fn size(self) -> isize
fn set(self, name: &str) -> Result<Self, Error>
fn digester(&self) -> Box<dyn DynDigest>
fn hash(self) -> Box<dyn DynDigest>
fn encode(&self, bytes: &[u8]) -> String
fn from_reader<R: Read>(&self, reader: R) -> String
fn from_bytes(&self, bytes: &[u8]) -> String
fn from_string(&self, str: &str) -> String
fn from_file(&self, path: &str) -> Result<String, Error>
fn validate(&self, str: &str) -> bool
Source§impl<'de: 'a, 'a> Deserialize<'de> for Algorithm<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Algorithm<'a>
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
Auto Trait Implementations§
impl<'a> Freeze for Algorithm<'a>
impl<'a> RefUnwindSafe for Algorithm<'a>
impl<'a> Send for Algorithm<'a>
impl<'a> Sync for Algorithm<'a>
impl<'a> Unpin for Algorithm<'a>
impl<'a> UnwindSafe for Algorithm<'a>
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