Struct der::asn1::OctetStringRef
source · [−]pub struct OctetStringRef<'a> { /* private fields */ }
Expand description
ASN.1 OCTET STRING
type: borrowed form.
Octet strings represent contiguous sequences of octets, a.k.a. bytes.
This is a zero-copy reference type which borrows from the input data.
Implementations
Trait Implementations
sourceimpl<'a> Clone for OctetStringRef<'a>
impl<'a> Clone for OctetStringRef<'a>
sourcefn clone(&self) -> OctetStringRef<'a>
fn clone(&self) -> OctetStringRef<'a>
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<'a> Debug for OctetStringRef<'a>
impl<'a> Debug for OctetStringRef<'a>
sourceimpl<'a> DecodeValue<'a> for OctetStringRef<'a>
impl<'a> DecodeValue<'a> for OctetStringRef<'a>
sourceimpl EncodeValue for OctetStringRef<'_>
impl EncodeValue for OctetStringRef<'_>
sourceimpl<'a> From<&'_ OctetStringRef<'a>> for OctetStringRef<'a>
impl<'a> From<&'_ OctetStringRef<'a>> for OctetStringRef<'a>
sourcefn from(value: &OctetStringRef<'a>) -> OctetStringRef<'a>
fn from(value: &OctetStringRef<'a>) -> OctetStringRef<'a>
Converts to this type from the input type.
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<'a> From<OctetStringRef<'a>> for AnyRef<'a>
impl<'a> From<OctetStringRef<'a>> for AnyRef<'a>
sourcefn from(octet_string: OctetStringRef<'a>) -> AnyRef<'a>
fn from(octet_string: OctetStringRef<'a>) -> AnyRef<'a>
Converts to this type from the input type.
sourceimpl<'a> Ord for OctetStringRef<'a>
impl<'a> Ord for OctetStringRef<'a>
sourceimpl<'a> PartialEq<OctetStringRef<'a>> for OctetStringRef<'a>
impl<'a> PartialEq<OctetStringRef<'a>> for OctetStringRef<'a>
sourcefn eq(&self, other: &OctetStringRef<'a>) -> bool
fn eq(&self, other: &OctetStringRef<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &OctetStringRef<'a>) -> bool
fn ne(&self, other: &OctetStringRef<'a>) -> bool
This method tests for !=
.
sourceimpl<'a> PartialOrd<OctetStringRef<'a>> for OctetStringRef<'a>
impl<'a> PartialOrd<OctetStringRef<'a>> for OctetStringRef<'a>
sourcefn partial_cmp(&self, other: &OctetStringRef<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &OctetStringRef<'a>) -> 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
sourceimpl<'a> TryFrom<AnyRef<'a>> for OctetStringRef<'a>
impl<'a> TryFrom<AnyRef<'a>> for OctetStringRef<'a>
impl<'a> Copy for OctetStringRef<'a>
impl<'a> Eq for OctetStringRef<'a>
impl<'a> StructuralEq for OctetStringRef<'a>
impl<'a> StructuralPartialEq for OctetStringRef<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for OctetStringRef<'a>
impl<'a> Send for OctetStringRef<'a>
impl<'a> Sync for OctetStringRef<'a>
impl<'a> Unpin for OctetStringRef<'a>
impl<'a> UnwindSafe for OctetStringRef<'a>
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