pub enum MetadataValue<'i> {
Text(Cow<'i, str>),
Expr(Cow<'i, str>),
}
Expand description
MetadataValue represents the value in key-value pair used in Metadata
.
Variants§
Text(Cow<'i, str>)
Regular string.
Expr(Cow<'i, str>)
Expression parsed properly prefixed by ::
instead of :
.
Trait Implementations§
Source§impl<'i> Debug for MetadataValue<'i>
impl<'i> Debug for MetadataValue<'i>
Source§impl Display for MetadataValue<'_>
impl Display for MetadataValue<'_>
Source§impl<'i> IntoBoundedStatic for MetadataValue<'i>
impl<'i> IntoBoundedStatic for MetadataValue<'i>
Source§type Static = MetadataValue<'static>
type Static = MetadataValue<'static>
The target type is bounded by the
'static
lifetime.Source§fn into_static(self) -> Self::Static
fn into_static(self) -> Self::Static
Convert an owned
T
into an owned T
such that T: 'static
.Source§impl<'i> PartialEq for MetadataValue<'i>
impl<'i> PartialEq for MetadataValue<'i>
Source§impl<'i> ToBoundedStatic for MetadataValue<'i>
impl<'i> ToBoundedStatic for MetadataValue<'i>
impl<'i> Eq for MetadataValue<'i>
impl<'i> StructuralPartialEq for MetadataValue<'i>
Auto Trait Implementations§
impl<'i> Freeze for MetadataValue<'i>
impl<'i> RefUnwindSafe for MetadataValue<'i>
impl<'i> Send for MetadataValue<'i>
impl<'i> Sync for MetadataValue<'i>
impl<'i> Unpin for MetadataValue<'i>
impl<'i> UnwindSafe for MetadataValue<'i>
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