Enum bencodex::codec::types::BencodexValue [−][src]
pub enum BencodexValue {
Binary(Vec<u8>),
Text(String),
Boolean(bool),
Number(BigInt),
List(BencodexList),
Dictionary(BencodexDictionary),
Null(()),
}
Variants
Text(String)
Tuple Fields of Text
0: String
Boolean(bool)
Tuple Fields of Boolean
0: bool
Number(BigInt)
Tuple Fields of Number
0: BigInt
List(BencodexList)
Tuple Fields of List
0: BencodexList
Dictionary(BencodexDictionary)
Tuple Fields of Dictionary
Null(())
Tuple Fields of Null
0: ()
Trait Implementations
impl<T, U> From<BTreeMap<T, U>> for BencodexValue where
T: Into<BencodexKey>,
U: Into<BencodexValue>,
impl<T, U> From<BTreeMap<T, U>> for BencodexValue where
T: Into<BencodexKey>,
U: Into<BencodexValue>,
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for BencodexValue
impl Send for BencodexValue
impl Sync for BencodexValue
impl Unpin for BencodexValue
impl UnwindSafe for BencodexValue
Blanket Implementations
Mutably borrows from an owned value. Read more