Struct bip_bencode::BencodeMut [] [src]

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

BencodeMut object that stores references to some data.

Methods

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

Create a new BencodeMut representing an i64.

Create a new BencodeMut representing a [u8].

Create a new BencodeMut representing a BListAccess.

Create a new BencodeMut representing a BDictAccess.

Encode the BencodeMut into a buffer representing the bencode.

Trait Implementations

impl<'a> Debug for BencodeMut<'a>
[src]

Formats the value using the given formatter.

impl<'a> Eq for BencodeMut<'a>
[src]

impl<'a> PartialEq for BencodeMut<'a>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a> Clone for BencodeMut<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Hash for BencodeMut<'a>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<'a> BRefAccess<'a> for BencodeMut<'a>
[src]

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.

impl<'a> BMutAccess<'a> for BencodeMut<'a>
[src]

Access the bencode as a BencodeMutKind.

Attempt to access the bencode as a mutable BListAccess.

Attempt to access the bencode as a mutable BDictAccess.