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