Trait bip_bencode::BRefAccess [] [src]

pub trait BRefAccess: Sized {
    type BKey;
    type BType: BRefAccess<BKey = Self::BKey>;
    fn kind<'a>(&'a self) -> BencodeRefKind<'a, Self::BKey, Self::BType>;
fn str(&self) -> Option<&str>;
fn int(&self) -> Option<i64>;
fn bytes(&self) -> Option<&[u8]>;
fn list(&self) -> Option<&BListAccess<Self::BType>>;
fn dict(&self) -> Option<&BDictAccess<Self::BKey, Self::BType>>; }

Trait for read access to some bencode type.

Associated Types

Required Methods

Access the bencode as a BencodeRefKind.

Attempt to access the bencode as a str.

Attempt to access the bencode as an i64.

Attempt to access the bencode as an [u8].

Attempt to access the bencode as an BListAccess.

Attempt to access the bencode as an BDictAccess.

Implementations on Foreign Types

impl<'a, T> BRefAccess for &'a T where
    T: BRefAccess
[src]

[src]

[src]

[src]

[src]

[src]

[src]

Implementors