[][src]Struct gcrypt::sexp::SExpression

pub struct SExpression(_);

Methods

impl SExpression[src]

pub unsafe fn from_raw(raw: gcry_sexp_t) -> Self[src]

pub fn as_raw(&self) -> gcry_sexp_t[src]

pub fn into_raw(self) -> gcry_sexp_t[src]

pub fn from_bytes(bytes: impl AsRef<[u8]>) -> Result<SExpression>[src]

pub fn to_bytes(&self, format: Format) -> Vec<u8>[src]

pub fn len_encoded(&self, format: Format) -> usize[src]

pub fn encode(&self, format: Format, buf: &mut [u8]) -> Option<usize>[src]

pub fn elements(&self) -> Elements[src]

pub fn head(&self) -> Option<SExpression>[src]

pub fn tail(&self) -> Option<SExpression>[src]

pub fn is_empty(&self) -> bool[src]

pub fn len(&self) -> usize[src]

pub fn find_token(&self, token: impl AsRef<[u8]>) -> Option<SExpression>[src]

pub fn get(&self, idx: u32) -> Option<SExpression>[src]

pub fn get_bytes(&self, idx: u32) -> Option<&[u8]>[src]

pub fn get_str(&self, idx: u32) -> Result<&str, Option<Utf8Error>>[src]

pub fn get_integer(&self, idx: u32, fmt: IntegerFormat) -> Option<Integer>[src]

Trait Implementations

impl Debug for SExpression[src]

impl Drop for SExpression[src]

impl FromStr for SExpression[src]

type Err = Error

The associated error which can be returned from parsing.

impl<'a> IntoIterator for &'a SExpression[src]

type Item = SExpression

The type of the elements being iterated over.

type IntoIter = Elements<'a>

Which kind of iterator are we turning this into?

impl<'_> TryFrom<&'_ [u8]> for SExpression[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.