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]
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
impl RefUnwindSafe for DeepFinder
impl RefUnwindSafe for DeepFinder
impl Send for DeepFinder
impl Send for DeepFinder
impl Sync for DeepFinder
impl Sync for DeepFinder
impl Unpin for DeepFinder
impl Unpin for DeepFinder
impl UnwindSafe for DeepFinder
impl UnwindSafe for DeepFinder
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]