Struct der::asn1::Ia5StringRef
source · [−]pub struct Ia5StringRef<'a> { /* private fields */ }
Expand description
ASN.1 IA5String
type.
Supports the International Alphabet No. 5 (IA5) character encoding, i.e. the lower 128 characters of the ASCII alphabet. (Note: IA5 is now technically known as the International Reference Alphabet or IRA as specified in the ITU-T’s T.50 recommendation).
For UTF-8, use Utf8StringRef
.
This is a zero-copy reference type which borrows from the input data.
Implementations
Trait Implementations
sourceimpl AsRef<str> for Ia5StringRef<'_>
impl AsRef<str> for Ia5StringRef<'_>
sourceimpl<'a> Clone for Ia5StringRef<'a>
impl<'a> Clone for Ia5StringRef<'a>
sourcefn clone(&self) -> Ia5StringRef<'a>
fn clone(&self) -> Ia5StringRef<'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 Ia5StringRef<'a>
impl<'a> Debug for Ia5StringRef<'a>
sourceimpl<'a> DecodeValue<'a> for Ia5StringRef<'a>
impl<'a> DecodeValue<'a> for Ia5StringRef<'a>
sourceimpl<'a> Display for Ia5StringRef<'a>
impl<'a> Display for Ia5StringRef<'a>
sourceimpl EncodeValue for Ia5StringRef<'_>
impl EncodeValue for Ia5StringRef<'_>
sourceimpl<'a> From<&'_ Ia5StringRef<'a>> for Ia5StringRef<'a>
impl<'a> From<&'_ Ia5StringRef<'a>> for Ia5StringRef<'a>
sourcefn from(value: &Ia5StringRef<'a>) -> Ia5StringRef<'a>
fn from(value: &Ia5StringRef<'a>) -> Ia5StringRef<'a>
Converts to this type from the input type.
sourceimpl<'a> From<Ia5StringRef<'a>> for AnyRef<'a>
impl<'a> From<Ia5StringRef<'a>> for AnyRef<'a>
sourcefn from(printable_string: Ia5StringRef<'a>) -> AnyRef<'a>
fn from(printable_string: Ia5StringRef<'a>) -> AnyRef<'a>
Converts to this type from the input type.
sourceimpl<'a> Ord for Ia5StringRef<'a>
impl<'a> Ord for Ia5StringRef<'a>
sourceimpl<'a> PartialEq<Ia5StringRef<'a>> for Ia5StringRef<'a>
impl<'a> PartialEq<Ia5StringRef<'a>> for Ia5StringRef<'a>
sourcefn eq(&self, other: &Ia5StringRef<'a>) -> bool
fn eq(&self, other: &Ia5StringRef<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Ia5StringRef<'a>) -> bool
fn ne(&self, other: &Ia5StringRef<'a>) -> bool
This method tests for !=
.
sourceimpl<'a> PartialOrd<Ia5StringRef<'a>> for Ia5StringRef<'a>
impl<'a> PartialOrd<Ia5StringRef<'a>> for Ia5StringRef<'a>
sourcefn partial_cmp(&self, other: &Ia5StringRef<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &Ia5StringRef<'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 Ia5StringRef<'a>
impl<'a> TryFrom<AnyRef<'a>> for Ia5StringRef<'a>
impl<'a> Copy for Ia5StringRef<'a>
impl<'a> Eq for Ia5StringRef<'a>
impl<'a> StructuralEq for Ia5StringRef<'a>
impl<'a> StructuralPartialEq for Ia5StringRef<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Ia5StringRef<'a>
impl<'a> Send for Ia5StringRef<'a>
impl<'a> Sync for Ia5StringRef<'a>
impl<'a> Unpin for Ia5StringRef<'a>
impl<'a> UnwindSafe for Ia5StringRef<'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