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