Struct bcder::oid::Component[][src]

pub struct Component<'a> { /* fields omitted */ }
Expand description

A component of an object identifier.

Although these components are integers, they are encoded in a slightly inconvenient way. Because of this we don’t convert them to native integers but rather keep them as references to the underlying octets.

This type allows comparison and formatting, which hopefully is all you’ll need. If you insist, the method to_u32 allows you to try to convert a component to a native integer.

Implementations

Attempts to convert the component to u32.

Since the component’s value can be larger than the maximum value of a u32, this may fail in which case the method will return None.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.