Struct SensorMount
pub struct SensorMount(/* private fields */);Expand description
A non-empty descriptive sensor mount label.
Implementations§
§impl SensorMount
impl SensorMount
pub fn new(value: impl AsRef<str>) -> Result<SensorMount, RobotSensorTextError>
pub fn new(value: impl AsRef<str>) -> Result<SensorMount, RobotSensorTextError>
Creates a sensor mount label from non-empty text.
§Errors
Returns [RobotSensorTextError::Empty] when the trimmed mount label is empty.
pub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the mount label and returns the owned string.
Trait Implementations§
§impl AsRef<str> for SensorMount
impl AsRef<str> for SensorMount
§impl Clone for SensorMount
impl Clone for SensorMount
§fn clone(&self) -> SensorMount
fn clone(&self) -> SensorMount
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for SensorMount
impl Debug for SensorMount
§impl Display for SensorMount
impl Display for SensorMount
§impl FromStr for SensorMount
impl FromStr for SensorMount
§impl Hash for SensorMount
impl Hash for SensorMount
§impl Ord for SensorMount
impl Ord for SensorMount
§impl PartialEq for SensorMount
impl PartialEq for SensorMount
§impl PartialOrd for SensorMount
impl PartialOrd for SensorMount
impl Eq for SensorMount
impl StructuralPartialEq for SensorMount
Auto Trait Implementations§
impl Freeze for SensorMount
impl RefUnwindSafe for SensorMount
impl Send for SensorMount
impl Sync for SensorMount
impl Unpin for SensorMount
impl UnsafeUnpin for SensorMount
impl UnwindSafe for SensorMount
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