Enum benko::Benc [−][src]
The nested Bencode structure container.
Variants
Int(BInt)
Str(BStr)
Vec(BVec)
Map(BMap)
Implementations
impl Benc
[src]
pub fn bytes(&self) -> Vec<u8>
[src]
parses the bencode object into a bencoded array of ascii bytes.
pub fn parse(bytes: &[u8]) -> ParseResult<Self>
[src]
attempts to parse an array of ascii bytes into a bencode object.
Trait Implementations
impl Clone for Benc
[src]
impl Debug for Benc
[src]
impl Eq for Benc
[src]
impl PartialEq<Benc> for Benc
[src]
impl StructuralEq for Benc
[src]
impl StructuralPartialEq for Benc
[src]
impl UnwrapBenc<BMapImpl> for Benc
[src]
fn try_unwrap_benc(self) -> UnwrapResult<BMap>
[src]
fn unwrap_benc(self) -> BMap
[src]
impl UnwrapBenc<Vec<Benc, Global>> for Benc
[src]
fn try_unwrap_benc(self) -> UnwrapResult<BVec>
[src]
fn unwrap_benc(self) -> BVec
[src]
impl UnwrapBenc<Vec<u8, Global>> for Benc
[src]
fn try_unwrap_benc(self) -> UnwrapResult<BStr>
[src]
fn unwrap_benc(self) -> BStr
[src]
impl UnwrapBenc<usize> for Benc
[src]
fn try_unwrap_benc(self) -> UnwrapResult<BInt>
[src]
fn unwrap_benc(self) -> BInt
[src]
Auto Trait Implementations
impl RefUnwindSafe for Benc
impl Send for Benc
impl Sync for Benc
impl Unpin for Benc
impl UnwindSafe for Benc
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,