pub struct StringValue(pub String);Expand description
Represents a string.
Tuple Fields§
§0: StringImplementations§
Source§impl StringValue
impl StringValue
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Returns the internal string, consuming self.
Trait Implementations§
Source§impl Clone for StringValue
impl Clone for StringValue
Source§fn clone(&self) -> StringValue
fn clone(&self) -> StringValue
Returns a duplicate 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 moreSource§impl Debug for StringValue
impl Debug for StringValue
Source§impl Default for StringValue
impl Default for StringValue
Source§fn default() -> StringValue
fn default() -> StringValue
Returns the “default value” for a type. Read more
Source§impl Display for StringValue
impl Display for StringValue
Source§impl<'a> From<&'a StringValue> for &'a str
impl<'a> From<&'a StringValue> for &'a str
Source§fn from(value: &'a StringValue) -> Self
fn from(value: &'a StringValue) -> Self
Converts to this type from the input type.
Source§impl From<String> for StringValue
impl From<String> for StringValue
Source§impl From<StringValue> for String
impl From<StringValue> for String
Source§fn from(value: StringValue) -> Self
fn from(value: StringValue) -> Self
Converts to this type from the input type.
Source§impl From<StringValue> for Value
impl From<StringValue> for Value
Source§fn from(value: StringValue) -> Self
fn from(value: StringValue) -> Self
Converts to this type from the input type.
Source§impl Hash for StringValue
impl Hash for StringValue
Source§impl Ord for StringValue
impl Ord for StringValue
Source§fn cmp(&self, other: &StringValue) -> Ordering
fn cmp(&self, other: &StringValue) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StringValue
impl PartialEq for StringValue
Source§impl PartialOrd for StringValue
impl PartialOrd 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