Struct StringValue
#[non_exhaustive]pub struct StringValue(/* private fields */);
Available on crate feature
opentelemetry
only.Expand description
Wrapper for string-like values
Implementations§
§impl StringValue
impl StringValue
Trait Implementations§
§impl AsRef<str> for StringValue
impl AsRef<str> for StringValue
§impl Clone for StringValue
impl Clone for StringValue
§fn clone(&self) -> StringValue
fn clone(&self) -> StringValue
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for StringValue
impl Debug for StringValue
§impl Display for StringValue
impl Display for StringValue
§impl From<&'static str> for StringValue
impl From<&'static str> for StringValue
§fn from(s: &'static str) -> StringValue
fn from(s: &'static str) -> StringValue
Converts to this type from the input type.
§impl From<Arc<str>> for StringValue
impl From<Arc<str>> for StringValue
§fn from(s: Arc<str>) -> StringValue
fn from(s: Arc<str>) -> StringValue
Converts to this type from the input type.
§impl From<Cow<'static, str>> for StringValue
impl From<Cow<'static, str>> for StringValue
§fn from(s: Cow<'static, str>) -> StringValue
fn from(s: Cow<'static, str>) -> StringValue
Converts to this type from the input type.
§impl From<String> for StringValue
impl From<String> for StringValue
§fn from(s: String) -> StringValue
fn from(s: String) -> StringValue
Converts to this type from the input type.
§impl From<StringValue> for AnyValue
impl From<StringValue> for AnyValue
§fn from(val: StringValue) -> AnyValue
fn from(val: StringValue) -> AnyValue
Converts to this type from the input type.
§impl From<StringValue> for String
impl From<StringValue> for String
§fn from(s: StringValue) -> String
fn from(s: StringValue) -> String
Converts to this type from the input type.
§impl From<StringValue> for Value
impl From<StringValue> for Value
§fn from(t: StringValue) -> Value
fn from(t: StringValue) -> Value
Converts to this type from the input type.
§impl From<Value> for StringValue
impl From<Value> for StringValue
§fn from(s: Value) -> StringValue
fn from(s: Value) -> StringValue
Converts to this type from the input type.
§impl Hash for StringValue
impl Hash for StringValue
§impl PartialEq for StringValue
impl PartialEq for StringValue
impl Eq for StringValue
impl StructuralPartialEq for StringValue
Auto Trait Implementations§
impl Freeze for StringValue
impl RefUnwindSafe for StringValue
impl Send for StringValue
impl Sync for StringValue
impl Unpin for StringValue
impl UnwindSafe for StringValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.