pub struct JointName(/* private fields */);Expand description
A non-empty joint name.
Implementations§
Source§impl JointName
impl JointName
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, JointTextError>
pub fn new(value: impl AsRef<str>) -> Result<Self, JointTextError>
Creates a joint name from non-empty text.
§Errors
Returns JointTextError::Empty when the trimmed name is empty.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the name and returns the owned string.
Trait Implementations§
Source§impl Ord for JointName
impl Ord for JointName
1.21.0 (const: unstable) · 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 PartialOrd for JointName
impl PartialOrd for JointName
impl Eq for JointName
impl StructuralPartialEq for JointName
Auto Trait Implementations§
impl Freeze for JointName
impl RefUnwindSafe for JointName
impl Send for JointName
impl Sync for JointName
impl Unpin for JointName
impl UnsafeUnpin for JointName
impl UnwindSafe for JointName
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