[][src]Struct ben::List

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

A bencode list

Methods

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

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

Gets an iterator over the entries of the list

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

Returns the Node at the given index.

pub fn get_dict(&self, i: usize) -> Option<Dict>[src]

Returns the Dict at the given index.

pub fn get_list(&self, i: usize) -> Option<List>[src]

Returns the List at the given index.

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

Returns the str at the given index.

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

Returns the i64 at the given index.

Auto Trait Implementations

impl<'a> RefUnwindSafe for List<'a>

impl<'a> Send for List<'a>

impl<'a> Sync for List<'a>

impl<'a> Unpin for List<'a>

impl<'a> UnwindSafe for List<'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.