[−][src]Struct ben::List
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]
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>,