pub enum BencodexValue {
Binary(Vec<u8>),
Text(String),
Boolean(bool),
Number(BigInt),
List(BencodexList),
Dictionary(BencodexDictionary),
Null,
}
Variants§
Binary(Vec<u8>)
Text(String)
Boolean(bool)
Number(BigInt)
List(BencodexList)
Dictionary(BencodexDictionary)
Null
Trait Implementations§
Source§impl Clone for BencodexValue
impl Clone for BencodexValue
Source§fn clone(&self) -> BencodexValue
fn clone(&self) -> BencodexValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BencodexValue
impl Debug for BencodexValue
Source§impl Encode for BencodexValue
impl Encode for BencodexValue
Source§impl From<&[u8]> for BencodexValue
impl From<&[u8]> for BencodexValue
Source§impl From<&str> for BencodexValue
impl From<&str> for BencodexValue
Source§impl<T, U> From<BTreeMap<T, U>> for BencodexValue
impl<T, U> From<BTreeMap<T, U>> for BencodexValue
Source§impl From<String> for BencodexValue
impl From<String> for BencodexValue
Source§impl<T> From<Vec<T>> for BencodexValuewhere
T: Into<BencodexValue>,
impl<T> From<Vec<T>> for BencodexValuewhere
T: Into<BencodexValue>,
Source§impl From<bool> for BencodexValue
impl From<bool> for BencodexValue
Source§impl From<i16> for BencodexValue
impl From<i16> for BencodexValue
Source§impl From<i32> for BencodexValue
impl From<i32> for BencodexValue
Source§impl From<i64> for BencodexValue
impl From<i64> for BencodexValue
Source§impl From<i8> for BencodexValue
impl From<i8> for BencodexValue
Source§impl From<u16> for BencodexValue
impl From<u16> for BencodexValue
Source§impl From<u32> for BencodexValue
impl From<u32> for BencodexValue
Source§impl From<u64> for BencodexValue
impl From<u64> for BencodexValue
Source§impl PartialEq for BencodexValue
impl PartialEq for BencodexValue
impl StructuralPartialEq for BencodexValue
Auto Trait Implementations§
impl Freeze for BencodexValue
impl RefUnwindSafe for BencodexValue
impl Send for BencodexValue
impl Sync for BencodexValue
impl Unpin for BencodexValue
impl UnwindSafe for BencodexValue
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