pub trait AlgorithmIdentifier {
type AlgorithmOid: Oid;
// Required methods
fn algorithm(&self) -> Self::AlgorithmOid;
fn parameters<W: Write>(&self, w: WriteContext<W>) -> GenResult<W>;
}Expand description
A trait for objects which represent ASN.1 AlgorithmIdentifiers.
Required Associated Types§
type AlgorithmOid: Oid
Required Methods§
Sourcefn algorithm(&self) -> Self::AlgorithmOid
fn algorithm(&self) -> Self::AlgorithmOid
Returns the object identifier for this AlgorithmIdentifier.
Sourcefn parameters<W: Write>(&self, w: WriteContext<W>) -> GenResult<W>
fn parameters<W: Write>(&self, w: WriteContext<W>) -> GenResult<W>
Writes the parameters for this AlgorithmIdentifier, if any.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.