pub struct EndEffectorName(/* private fields */);Expand description
A non-empty end-effector name.
Implementations§
Source§impl EndEffectorName
impl EndEffectorName
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, EndEffectorTextError>
pub fn new(value: impl AsRef<str>) -> Result<Self, EndEffectorTextError>
Creates an end-effector name from non-empty text.
§Errors
Returns EndEffectorTextError::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 AsRef<str> for EndEffectorName
impl AsRef<str> for EndEffectorName
Source§impl Clone for EndEffectorName
impl Clone for EndEffectorName
Source§fn clone(&self) -> EndEffectorName
fn clone(&self) -> EndEffectorName
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EndEffectorName
impl Debug for EndEffectorName
Source§impl Display for EndEffectorName
impl Display for EndEffectorName
Source§impl FromStr for EndEffectorName
impl FromStr for EndEffectorName
Source§impl Hash for EndEffectorName
impl Hash for EndEffectorName
Source§impl Ord for EndEffectorName
impl Ord for EndEffectorName
Source§fn cmp(&self, other: &EndEffectorName) -> Ordering
fn cmp(&self, other: &EndEffectorName) -> Ordering
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 PartialEq for EndEffectorName
impl PartialEq for EndEffectorName
Source§fn eq(&self, other: &EndEffectorName) -> bool
fn eq(&self, other: &EndEffectorName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for EndEffectorName
impl PartialOrd for EndEffectorName
impl Eq for EndEffectorName
impl StructuralPartialEq for EndEffectorName
Auto Trait Implementations§
impl Freeze for EndEffectorName
impl RefUnwindSafe for EndEffectorName
impl Send for EndEffectorName
impl Sync for EndEffectorName
impl Unpin for EndEffectorName
impl UnsafeUnpin for EndEffectorName
impl UnwindSafe for EndEffectorName
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