Enum pipe_chain::parser::bencode::Bencode
source · pub enum Bencode {
Integer(i64),
String(Vec<u8>),
List(Vec<Bencode>),
Dict(BTreeMap<Vec<u8>, Bencode>),
}Expand description
Bencode element
Variants§
Integer(i64)
Bencode integer
String(Vec<u8>)
Bencode string
List(Vec<Bencode>)
Bencode list
Dict(BTreeMap<Vec<u8>, Bencode>)
Bencode dict
Trait Implementations§
source§impl PartialEq for Bencode
impl PartialEq for Bencode
impl Eq for Bencode
impl StructuralEq for Bencode
impl StructuralPartialEq for Bencode
Auto Trait Implementations§
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