pub enum MetadataValueRef<'a> {
Null,
Bool(bool),
Signed(i64),
Unsigned(u64),
Float(f64),
String(&'a str),
Bytes(&'a [u8]),
Array(&'a [MetadataValue]),
Object(&'a Metadata),
}Expand description
A borrowed view of every closed MetadataValue variant.
This view preserves exhaustive observation even though MetadataValue has a
custom destructor and therefore cannot expose owned fields through by-value
pattern matching.
Variants§
Null
A null value.
Bool(bool)
A boolean value.
Signed(i64)
A signed integer.
Unsigned(u64)
An unsigned integer.
Float(f64)
A floating-point value, including every f64 bit pattern.
String(&'a str)
A borrowed UTF-8 string.
Bytes(&'a [u8])
Borrowed arbitrary bytes.
Array(&'a [MetadataValue])
A borrowed ordered array.
Object(&'a Metadata)
A borrowed string-keyed object.
Trait Implementations§
Source§impl<'a> Clone for MetadataValueRef<'a>
impl<'a> Clone for MetadataValueRef<'a>
impl<'a> Copy for MetadataValueRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for MetadataValueRef<'a>
impl<'a> RefUnwindSafe for MetadataValueRef<'a>
impl<'a> Send for MetadataValueRef<'a>
impl<'a> Sync for MetadataValueRef<'a>
impl<'a> Unpin for MetadataValueRef<'a>
impl<'a> UnsafeUnpin for MetadataValueRef<'a>
impl<'a> UnwindSafe for MetadataValueRef<'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