pub struct FrameName(/* private fields */);Expand description
A non-empty robotics frame name.
Implementations§
Source§impl FrameName
impl FrameName
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, FrameTextError>
pub fn new(value: impl AsRef<str>) -> Result<Self, FrameTextError>
Creates a frame name from non-empty text.
§Errors
Returns FrameTextError::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 FrameName
impl Ord for FrameName
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 FrameName
impl PartialOrd for FrameName
impl Eq for FrameName
impl StructuralPartialEq for FrameName
Auto Trait Implementations§
impl Freeze for FrameName
impl RefUnwindSafe for FrameName
impl Send for FrameName
impl Sync for FrameName
impl Unpin for FrameName
impl UnsafeUnpin for FrameName
impl UnwindSafe for FrameName
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