Struct bip_bencode::BencodeRef [] [src]

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

BencodeRef object that stores references to some buffer.

Methods

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

[src]

Decode the given bytes into a BencodeRef using the given decode options.

[src]

Get a byte slice of the current bencode byte representation.

Trait Implementations

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

[src]

Formats the value using the given formatter.

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

impl<'a> PartialEq for BencodeRef<'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 BencodeRef<'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 BencodeRef<'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 BencodeRef<'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> BRefAccessExt<'a> for BencodeRef<'a>
[src]

[src]

Attempt to access the bencode as a str.

[src]

Attempt to access the bencode as an [u8].