pub enum MetadataValue<'a> {
Int(i64),
Uint(u64),
Double(f64),
Str(Cow<'a, str>),
Bool(bool),
IntVec(Vec<i64>),
UintVec(Vec<u64>),
DoubleVec(Vec<f64>),
}
Expand description
An enum encoding all the possible metadata value types and contents.
Variants§
Int(i64)
Uint(u64)
Double(f64)
Str(Cow<'a, str>)
Bool(bool)
IntVec(Vec<i64>)
UintVec(Vec<u64>)
DoubleVec(Vec<f64>)
Trait Implementations§
source§impl<'a> Debug for MetadataValue<'a>
impl<'a> Debug for MetadataValue<'a>
source§impl<'a, T> From<&'a T> for MetadataValue<'a>where
T: VertexId,
impl<'a, T> From<&'a T> for MetadataValue<'a>where
T: VertexId,
source§fn from(value: &'a T) -> MetadataValue<'a>
fn from(value: &'a T) -> MetadataValue<'a>
Converts to this type from the input type.
source§impl<'a> From<&'a str> for MetadataValue<'a>
impl<'a> From<&'a str> for MetadataValue<'a>
source§fn from(value: &'a str) -> MetadataValue<'a>
fn from(value: &'a str) -> MetadataValue<'a>
Converts to this type from the input type.
source§impl From<String> for MetadataValue<'_>
impl From<String> for MetadataValue<'_>
source§fn from(value: String) -> MetadataValue<'static>
fn from(value: String) -> MetadataValue<'static>
Converts to this type from the input type.
source§impl From<bool> for MetadataValue<'_>
impl From<bool> for MetadataValue<'_>
source§fn from(value: bool) -> MetadataValue<'static>
fn from(value: bool) -> MetadataValue<'static>
Converts to this type from the input type.
source§impl From<f32> for MetadataValue<'_>
impl From<f32> for MetadataValue<'_>
source§fn from(value: f32) -> MetadataValue<'static>
fn from(value: f32) -> MetadataValue<'static>
Converts to this type from the input type.
source§impl From<f64> for MetadataValue<'_>
impl From<f64> for MetadataValue<'_>
source§fn from(value: f64) -> MetadataValue<'static>
fn from(value: f64) -> MetadataValue<'static>
Converts to this type from the input type.
source§impl From<i16> for MetadataValue<'_>
impl From<i16> for MetadataValue<'_>
source§fn from(value: i16) -> MetadataValue<'static>
fn from(value: i16) -> MetadataValue<'static>
Converts to this type from the input type.
source§impl From<i32> for MetadataValue<'_>
impl From<i32> for MetadataValue<'_>
source§fn from(value: i32) -> MetadataValue<'static>
fn from(value: i32) -> MetadataValue<'static>
Converts to this type from the input type.
source§impl From<i64> for MetadataValue<'_>
impl From<i64> for MetadataValue<'_>
source§fn from(value: i64) -> MetadataValue<'static>
fn from(value: i64) -> MetadataValue<'static>
Converts to this type from the input type.
source§impl From<i8> for MetadataValue<'_>
impl From<i8> for MetadataValue<'_>
source§fn from(value: i8) -> MetadataValue<'static>
fn from(value: i8) -> MetadataValue<'static>
Converts to this type from the input type.
source§impl From<u16> for MetadataValue<'_>
impl From<u16> for MetadataValue<'_>
source§fn from(value: u16) -> MetadataValue<'static>
fn from(value: u16) -> MetadataValue<'static>
Converts to this type from the input type.
source§impl From<u32> for MetadataValue<'_>
impl From<u32> for MetadataValue<'_>
source§fn from(value: u32) -> MetadataValue<'static>
fn from(value: u32) -> MetadataValue<'static>
Converts to this type from the input type.
source§impl From<u64> for MetadataValue<'_>
impl From<u64> for MetadataValue<'_>
source§fn from(value: u64) -> MetadataValue<'static>
fn from(value: u64) -> MetadataValue<'static>
Converts to this type from the input type.
source§impl From<u8> for MetadataValue<'_>
impl From<u8> for MetadataValue<'_>
source§fn from(value: u8) -> MetadataValue<'static>
fn from(value: u8) -> MetadataValue<'static>
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for MetadataValue<'a>
impl<'a> RefUnwindSafe for MetadataValue<'a>
impl<'a> Send for MetadataValue<'a>
impl<'a> Sync for MetadataValue<'a>
impl<'a> Unpin for MetadataValue<'a>
impl<'a> UnwindSafe for MetadataValue<'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