pub enum BValue {
Bytes(Vec<u8>),
Int(i64),
List(Vec<BValue>),
Dict(BTreeMap<Vec<u8>, BValue>),
}Expand description
Bencode value representation.
Variants§
Bytes(Vec<u8>)
Byte string (may contain non-UTF8).
Int(i64)
Integer.
List(Vec<BValue>)
List of values.
Dict(BTreeMap<Vec<u8>, BValue>)
Dictionary (sorted by key).
Implementations§
Trait Implementations§
impl StructuralPartialEq for BValue
Auto Trait Implementations§
impl Freeze for BValue
impl RefUnwindSafe for BValue
impl Send for BValue
impl Sync for BValue
impl Unpin for BValue
impl UnwindSafe for BValue
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