Struct der_parser::oid::Oid [−][src]
pub struct Oid(_);
Object ID (OID) representation
Methods
impl Oid
[src]
impl Oid
pub fn from(s: &[u64]) -> Oid
[src]
pub fn from(s: &[u64]) -> Oid
Build an OID from an array of u64
integers
pub fn to_string(&self) -> String
[src]
pub fn to_string(&self) -> String
Convert the OID to a string representation. The string contains the IDs separated by dots, for ex: "1.2.840.113549.1.1.5"
pub fn iter(&self) -> Iter<u64>
[src]
pub fn iter(&self) -> Iter<u64>
Return an iterator on every ID
Trait Implementations
impl<'a> From<Oid> for DerObject<'a>
[src]
impl<'a> From<Oid> for DerObject<'a>
Build a DER object from an OID.
impl PartialEq for Oid
[src]
impl PartialEq for Oid
fn eq(&self, other: &Oid) -> bool
[src]
fn eq(&self, other: &Oid) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Oid) -> bool
[src]
fn ne(&self, other: &Oid) -> bool
This method tests for !=
.
impl Eq for Oid
[src]
impl Eq for Oid
impl Clone for Oid
[src]
impl Clone for Oid
fn clone(&self) -> Oid
[src]
fn clone(&self) -> Oid
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Display for Oid
[src]
impl Display for Oid
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Debug for Oid
[src]
impl Debug for Oid