pub struct VariableName(/* private fields */);Implementations§
Source§impl VariableName
impl VariableName
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, ApiPrimitiveError>
pub fn new(value: impl AsRef<str>) -> Result<Self, ApiPrimitiveError>
Creates validated text metadata.
§Errors
Returns ApiPrimitiveError when the value is empty or contains control characters.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the value and returns the stored text.
Trait Implementations§
Source§impl AsRef<str> for VariableName
impl AsRef<str> for VariableName
Source§impl Clone for VariableName
impl Clone for VariableName
Source§fn clone(&self) -> VariableName
fn clone(&self) -> VariableName
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 VariableName
impl Debug for VariableName
Source§impl Display for VariableName
impl Display for VariableName
Source§impl FromStr for VariableName
impl FromStr for VariableName
Source§impl Hash for VariableName
impl Hash for VariableName
Source§impl Ord for VariableName
impl Ord for VariableName
Source§fn cmp(&self, other: &VariableName) -> Ordering
fn cmp(&self, other: &VariableName) -> 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 VariableName
impl PartialEq for VariableName
Source§impl PartialOrd for VariableName
impl PartialOrd for VariableName
Source§impl TryFrom<&str> for VariableName
impl TryFrom<&str> for VariableName
impl Eq for VariableName
impl StructuralPartialEq for VariableName
Auto Trait Implementations§
impl Freeze for VariableName
impl RefUnwindSafe for VariableName
impl Send for VariableName
impl Sync for VariableName
impl Unpin for VariableName
impl UnsafeUnpin for VariableName
impl UnwindSafe for VariableName
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