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]

[src]

Create a new BencodeMut representing an i64.

[src]

Create a new BencodeMut representing a [u8].

[src]

Create a new BencodeMut representing a BListAccess.

[src]

Create a new BencodeMut representing a BDictAccess.

[src]

Encode the BencodeMut into a buffer representing the bencode.

Trait Implementations

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

[src]

Formats the value using the given formatter.

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

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

[src]

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

[src]

This method tests for !=.

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

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

1.3.0
[src]

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

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

[src]

Access the bencode as a BencodeRefKind.

[src]

Attempt to access the bencode as a str.

[src]

Attempt to access the bencode as an i64.

[src]

Attempt to access the bencode as an [u8].

[src]

Attempt to access the bencode as an BListAccess.

[src]

Attempt to access the bencode as an BDictAccess.

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

[src]

Access the bencode as a BencodeMutKind.

[src]

Attempt to access the bencode as a mutable BListAccess.

[src]

Attempt to access the bencode as a mutable BDictAccess.