Struct der::Utf8String [−][src]
pub struct Utf8String<'a> { /* fields omitted */ }Expand description
ASN.1 UTF8String type.
Supports the full UTF-8 encoding.
Note that the Decodable and Encodable traits
are impl’d for Rust’s str primitive, which decodes/encodes
as a Utf8String.
You are free to use str instead of this type, however it’s
still provided for explicitness in cases where it might be ambiguous with
other ASN.1 string encodings such as
PrintableString.
Implementations
impl<'a> Utf8String<'a>[src]
impl<'a> Utf8String<'a>[src]Trait Implementations
impl<'a> Clone for Utf8String<'a>[src]
impl<'a> Clone for Utf8String<'a>[src]fn clone(&self) -> Utf8String<'a>[src]
fn clone(&self) -> Utf8String<'a>[src]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<'a> Debug for Utf8String<'a>[src]
impl<'a> Debug for Utf8String<'a>[src]impl<'a> Display for Utf8String<'a>[src]
impl<'a> Display for Utf8String<'a>[src]impl<'a> Encodable for Utf8String<'a>[src]
impl<'a> Encodable for Utf8String<'a>[src]fn encoded_len(&self) -> Result<Length>[src]
fn encoded_len(&self) -> Result<Length>[src]Compute the length of this value in bytes when encoded as ASN.1 DER.
fn encode(&self, encoder: &mut Encoder<'_>) -> Result<()>[src]
fn encode(&self, encoder: &mut Encoder<'_>) -> Result<()>[src]Encode this value as ASN.1 DER using the provided Encoder.
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8]>[src]
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8]>[src]Encode this value to the provided byte slice, returning a sub-slice containing the encoded message. Read more
impl<'a> From<&'_ Utf8String<'a>> for Utf8String<'a>[src]
impl<'a> From<&'_ Utf8String<'a>> for Utf8String<'a>[src]fn from(value: &Utf8String<'a>) -> Utf8String<'a>[src]
fn from(value: &Utf8String<'a>) -> Utf8String<'a>[src]Performs the conversion.
impl<'a> From<Utf8String<'a>> for Any<'a>[src]
impl<'a> From<Utf8String<'a>> for Any<'a>[src]fn from(printable_string: Utf8String<'a>) -> Any<'a>[src]
fn from(printable_string: Utf8String<'a>) -> Any<'a>[src]Performs the conversion.
impl<'a> Ord for Utf8String<'a>[src]
impl<'a> Ord for Utf8String<'a>[src]impl<'a> PartialEq<Utf8String<'a>> for Utf8String<'a>[src]
impl<'a> PartialEq<Utf8String<'a>> for Utf8String<'a>[src]fn eq(&self, other: &Utf8String<'a>) -> bool[src]
fn eq(&self, other: &Utf8String<'a>) -> bool[src]This method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &Utf8String<'a>) -> bool[src]
fn ne(&self, other: &Utf8String<'a>) -> bool[src]This method tests for !=.
impl<'a> PartialOrd<Utf8String<'a>> for Utf8String<'a>[src]
impl<'a> PartialOrd<Utf8String<'a>> for Utf8String<'a>[src]fn partial_cmp(&self, other: &Utf8String<'a>) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Utf8String<'a>) -> Option<Ordering>[src]This method returns an ordering between self and other values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl<'a> TryFrom<Any<'a>> for Utf8String<'a>[src]
impl<'a> TryFrom<Any<'a>> for Utf8String<'a>[src]impl<'a> Copy for Utf8String<'a>[src]
impl<'a> Eq for Utf8String<'a>[src]
impl<'a> StructuralEq for Utf8String<'a>[src]
impl<'a> StructuralPartialEq for Utf8String<'a>[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Utf8String<'a>
impl<'a> Send for Utf8String<'a>
impl<'a> Sync for Utf8String<'a>
impl<'a> Unpin for Utf8String<'a>
impl<'a> UnwindSafe for Utf8String<'a>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more