Enum dove::types::ValueRef [−][src]
pub enum ValueRef<'a> {
Show 23 variants
Described(Box<ValueRef<'a>>, Box<ValueRef<'a>>),
Null,
Bool(&'a bool),
Ubyte(&'a u8),
Ushort(&'a u16),
Uint(&'a u32),
Ulong(&'a u64),
Byte(&'a i8),
Short(&'a i16),
Int(&'a i32),
Long(&'a i64),
Char(&'a char),
Timestamp(&'a u64),
Binary(&'a [u8]),
String(&'a str),
Symbol(&'a [u8]),
SymbolRef(&'a str),
List(&'a Vec<Value>),
ListRef(&'a Vec<ValueRef<'a>>),
Map(&'a Vec<(Value, Value)>),
MapRef(&'a Vec<(ValueRef<'a>, ValueRef<'a>)>),
Array(&'a Vec<Value>),
ArrayRef(&'a Vec<ValueRef<'a>>),
}
Expand description
A reference to a type with a given value. This allows efficient zero copy of the provided values and should be used when possible (depends on lifetime constraints where its used).
Variants
Bool(&'a bool)
Tuple Fields of Bool
0: &'a bool
Ubyte(&'a u8)
Tuple Fields of Ubyte
0: &'a u8
Ushort(&'a u16)
Tuple Fields of Ushort
0: &'a u16
Uint(&'a u32)
Tuple Fields of Uint
0: &'a u32
Ulong(&'a u64)
Tuple Fields of Ulong
0: &'a u64
Byte(&'a i8)
Tuple Fields of Byte
0: &'a i8
Short(&'a i16)
Tuple Fields of Short
0: &'a i16
Int(&'a i32)
Tuple Fields of Int
0: &'a i32
Long(&'a i64)
Tuple Fields of Long
0: &'a i64
Char(&'a char)
Tuple Fields of Char
0: &'a char
Timestamp(&'a u64)
Tuple Fields of Timestamp
0: &'a u64
String(&'a str)
Tuple Fields of String
0: &'a str
SymbolRef(&'a str)
Tuple Fields of SymbolRef
0: &'a str
Trait Implementations
This is the main encoder implementation for AMQP types.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for ValueRef<'a>
impl<'a> UnwindSafe for ValueRef<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more