pub enum Bencode {
Bytes(Vec<u8>),
Integer(i64),
List(Vec<Self>),
Dict(BTreeMap<Vec<u8>, Self>),
}
Expand description
Represent the four types included in the Bencode specification
Variants§
Implementations§
Trait Implementations§
impl Eq for Bencode
impl StructuralPartialEq for Bencode
Auto Trait Implementations§
impl Freeze for Bencode
impl RefUnwindSafe for Bencode
impl Send for Bencode
impl Sync for Bencode
impl Unpin for Bencode
impl UnwindSafe for Bencode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more