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