Struct der::asn1::OctetString
source · [−]pub struct OctetString { /* private fields */ }
alloc
only.Expand description
ASN.1 OCTET STRING
type: owned form..
Octet strings represent contiguous sequences of octets, a.k.a. bytes.
This type provides the same functionality as OctetStringRef
but owns
the backing data.
Implementations
Trait Implementations
sourceimpl Clone for OctetString
impl Clone for OctetString
sourcefn clone(&self) -> OctetString
fn clone(&self) -> OctetString
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OctetString
impl Debug for OctetString
sourceimpl<'a> DecodeValue<'a> for OctetString
impl<'a> DecodeValue<'a> for OctetString
sourceimpl EncodeValue for OctetString
impl EncodeValue for OctetString
sourceimpl<'a> From<&'a OctetString> for OctetStringRef<'a>
impl<'a> From<&'a OctetString> for OctetStringRef<'a>
sourcefn from(octet_string: &'a OctetString) -> OctetStringRef<'a>
fn from(octet_string: &'a OctetString) -> OctetStringRef<'a>
Converts to this type from the input type.
sourceimpl Ord for OctetString
impl Ord for OctetString
sourceimpl PartialEq<OctetString> for OctetString
impl PartialEq<OctetString> for OctetString
sourcefn eq(&self, other: &OctetString) -> bool
fn eq(&self, other: &OctetString) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &OctetString) -> bool
fn ne(&self, other: &OctetString) -> bool
This method tests for !=
.
sourceimpl PartialOrd<OctetString> for OctetString
impl PartialOrd<OctetString> for OctetString
sourcefn partial_cmp(&self, other: &OctetString) -> Option<Ordering>
fn partial_cmp(&self, other: &OctetString) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Eq for OctetString
impl StructuralEq for OctetString
impl StructuralPartialEq for OctetString
Auto Trait Implementations
impl RefUnwindSafe for OctetString
impl Send for OctetString
impl Sync for OctetString
impl Unpin for OctetString
impl UnwindSafe for OctetString
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more