pub struct Algorithm { /* private fields */ }Expand description
An algorithm is the combination of the AlgorithmId and its parameters.
Implementations
sourceimpl Algorithm
impl Algorithm
sourcepub fn new<'a, T>(algorithm: AlgorithmId, parameters: T) -> Selfwhere
T: Into<Option<&'a [u8]>>,
pub fn new<'a, T>(algorithm: AlgorithmId, parameters: T) -> Selfwhere
T: Into<Option<&'a [u8]>>,
Creates a new algorithm with parameters.
Attributes:
algorithm- The Algorithm.parameters- Specific parameters for the algorithm, if any.
sourcepub fn algorithm(&self) -> AlgorithmId
pub fn algorithm(&self) -> AlgorithmId
Returns the algorithm
sourcepub fn parameters(&self) -> Option<&[u8]>
pub fn parameters(&self) -> Option<&[u8]>
Returns the parameters required by the algorithm.
Trait Implementations
sourceimpl From<AlgorithmId> for Algorithm
impl From<AlgorithmId> for Algorithm
sourcefn from(algorithm: AlgorithmId) -> Self
fn from(algorithm: AlgorithmId) -> Self
Converts to this type from the input type.
impl Eq for Algorithm
impl StructuralEq for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnwindSafe for Algorithm
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more