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