Struct benko::BMapImpl[][src]

pub struct BMapImpl { /* fields omitted */ }

Implementation: A HashMap wrapper that clones the contained Benc items when self.get() is called to avoid causing a move on the un-Copy-able type Benc.

Implementations

impl BMapImpl[src]

pub fn get(&self, key: &BStr) -> Option<Benc>[src]

pub fn insert(&mut self, key: BStr, val: Benc)[src]

pub fn contains_key(&self, key: &BStr) -> bool[src]

pub fn new() -> Self[src]

pub fn len(&self) -> usize[src]

pub fn items(&self) -> Vec<(BStr, Benc)>[src]

Trait Implementations

impl Clone for BMapImpl[src]

impl Debug for BMapImpl[src]

impl EncodeBencode<BMapImpl> for BMap[src]

impl Eq for BMapImpl[src]

impl ParseBenc<BMapImpl> for BMap[src]

impl PartialEq<BMapImpl> for BMapImpl[src]

impl StructuralEq for BMapImpl[src]

impl StructuralPartialEq for BMapImpl[src]

impl UnwrapBenc<BMapImpl> for Benc[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.