[−][src]Struct sequoia_openpgp::crypto::sexp::String_
A string.
A string can optionally have a display hint.
Implementations
impl String_
[src]
pub fn new<S>(s: S) -> Self where
S: Into<Box<[u8]>>,
[src]
S: Into<Box<[u8]>>,
Constructs a new Simple String.
pub fn with_display_hint<S, T>(s: S, display_hint: T) -> Self where
S: Into<Box<[u8]>>,
T: Into<Box<[u8]>>,
[src]
S: Into<Box<[u8]>>,
T: Into<Box<[u8]>>,
Constructs a new String.
pub fn display_hint(&self) -> Option<&[u8]>
[src]
Gets a reference to this String's display hint, if any.
Trait Implementations
impl Arbitrary for String_
[src]
fn arbitrary<G: Gen>(g: &mut G) -> Self
[src]
fn shrink(&self) -> Box<dyn Iterator<Item = Self> + 'static>
[src]
impl Clone for String_
[src]
impl Debug for String_
[src]
impl Deref for String_
[src]
impl Eq for String_
[src]
impl<'_> From<&'_ [u8]> for String_
[src]
impl<'_> From<&'_ str> for String_
[src]
impl Marshal for String_
[src]
fn serialize(&self, o: &mut dyn Write) -> Result<()>
[src]
fn export(&self, o: &mut dyn Write) -> Result<()>
[src]
impl MarshalInto for String_
[src]
fn serialized_len(&self) -> usize
[src]
fn serialize_into(&self, buf: &mut [u8]) -> Result<usize>
[src]
fn to_vec(&self) -> Result<Vec<u8>>
[src]
fn export_into(&self, buf: &mut [u8]) -> Result<usize>
[src]
fn export_to_vec(&self) -> Result<Vec<u8>>
[src]
impl PartialEq<String_> for String_
[src]
impl StructuralEq for String_
[src]
impl StructuralPartialEq for String_
[src]
Auto Trait Implementations
impl RefUnwindSafe for String_
impl Send for String_
impl Sync for String_
impl Unpin for String_
impl UnwindSafe for String_
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,