Struct rdest::DeepFinder[][src]

pub struct DeepFinder {}

Deep finder class looking for dictionary key in bencoded string.

Perform deep search, by looking for keys in dictionary values (that can be dictionaries itself).

Trait Implementations

impl RawFinder for DeepFinder[src]

fn find_first(key: &str, arg: &[u8]) -> Option<Vec<u8>>[src]

Find first value by specific dictionary key in bencoded string. Look also in dictionary values which may be dictionaries itself. Value is returned in raw foramt.

Example

use rdest::{DeepFinder, RawFinder};

let value = DeepFinder::find_first("1:k", b"d1:k4:spame").unwrap();
assert_eq!(value, b"4:spam".to_vec());

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> Instrument for T[src]

impl<T> Instrument 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.