pub enum ValueKind<'a> {
Integer(Integer<'a>),
Bytes(&'a [u8]),
List(Vec<Value<'a>>),
Dictionary(Vec<(ByteString<'a>, Value<'a>)>),
}Expand description
The payload of a borrowed bencode value.
Variants§
Integer(Integer<'a>)
Lossless signed bencode integer text.
Bytes(&'a [u8])
Raw byte string.
List(Vec<Value<'a>>)
Ordered list of values.
Dictionary(Vec<(ByteString<'a>, Value<'a>)>)
Ordered dictionary entries with raw byte-string keys.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ValueKind<'a>
impl<'a> RefUnwindSafe for ValueKind<'a>
impl<'a> Send for ValueKind<'a>
impl<'a> Sync for ValueKind<'a>
impl<'a> Unpin for ValueKind<'a>
impl<'a> UnwindSafe for ValueKind<'a>
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