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