[][src]Struct ben::Dict

pub struct Dict<'a> { /* fields omitted */ }

A bencode dictionary

Methods

impl<'a> Dict<'a>[src]

pub fn iter(&self) -> DictIter<'a>[src]

Gets an iterator over the entries of the dictionary.

pub fn get(&self, key: &[u8]) -> Option<Node<'a>>[src]

Returns the Node for the given key.

pub fn get_dict(&self, key: &[u8]) -> Option<Dict<'a>>[src]

Returns the Dict for the given key.

pub fn get_list(&self, key: &[u8]) -> Option<List<'a>>[src]

Returns the List for the given key.

pub fn get_str(&self, key: &[u8]) -> Option<&str>[src]

Returns the str for the given key.

pub fn get_int(&self, key: &[u8]) -> Option<i64>[src]

Returns the i64 for the given key.

Auto Trait Implementations

impl<'a> RefUnwindSafe for Dict<'a>

impl<'a> Send for Dict<'a>

impl<'a> Sync for Dict<'a>

impl<'a> Unpin for Dict<'a>

impl<'a> UnwindSafe for Dict<'a>

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.