pub struct ActuatorName(/* private fields */);Expand description
A non-empty actuator name.
Implementations§
Source§impl ActuatorName
impl ActuatorName
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, ActuatorTextError>
pub fn new(value: impl AsRef<str>) -> Result<Self, ActuatorTextError>
Creates an actuator name from non-empty text.
§Errors
Returns ActuatorTextError::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 ActuatorName
impl AsRef<str> for ActuatorName
Source§impl Clone for ActuatorName
impl Clone for ActuatorName
Source§fn clone(&self) -> ActuatorName
fn clone(&self) -> ActuatorName
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 moreSource§impl Debug for ActuatorName
impl Debug for ActuatorName
Source§impl Display for ActuatorName
impl Display for ActuatorName
Source§impl FromStr for ActuatorName
impl FromStr for ActuatorName
Source§impl Hash for ActuatorName
impl Hash for ActuatorName
Source§impl Ord for ActuatorName
impl Ord for ActuatorName
Source§fn cmp(&self, other: &ActuatorName) -> Ordering
fn cmp(&self, other: &ActuatorName) -> Ordering
1.21.0 · 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 ActuatorName
impl PartialEq for ActuatorName
Source§impl PartialOrd for ActuatorName
impl PartialOrd for ActuatorName
impl Eq for ActuatorName
impl StructuralPartialEq for ActuatorName
Auto Trait Implementations§
impl Freeze for ActuatorName
impl RefUnwindSafe for ActuatorName
impl Send for ActuatorName
impl Sync for ActuatorName
impl Unpin for ActuatorName
impl UnsafeUnpin for ActuatorName
impl UnwindSafe for ActuatorName
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