[−][src]Struct gcrypt::sexp::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.
fn from_str(s: &str) -> Result<Self>
[src]
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?
fn into_iter(self) -> Self::IntoIter
[src]
impl<'_> TryFrom<&'_ [u8]> for SExpression
[src]
Auto Trait Implementations
impl RefUnwindSafe for SExpression
impl !Send for SExpression
impl !Sync for SExpression
impl Unpin for SExpression
impl UnwindSafe for SExpression
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, 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>,