Enum okane_core::repl::MetadataValue
source · 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>
§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§fn eq(&self, other: &MetadataValue<'i>) -> bool
fn eq(&self, other: &MetadataValue<'i>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.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