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