Struct ActuatorName
pub struct ActuatorName(/* private fields */);Expand description
A non-empty actuator name.
Implementations§
§impl ActuatorName
impl ActuatorName
pub fn new(value: impl AsRef<str>) -> Result<ActuatorName, ActuatorTextError>
pub fn new(value: impl AsRef<str>) -> Result<ActuatorName, ActuatorTextError>
Creates an actuator name from non-empty text.
§Errors
Returns [ActuatorTextError::Empty] when the trimmed name is empty.
pub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the name and returns the owned string.
Trait Implementations§
§impl AsRef<str> for ActuatorName
impl AsRef<str> for ActuatorName
§impl Clone for ActuatorName
impl Clone for ActuatorName
§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 more§impl Debug for ActuatorName
impl Debug for ActuatorName
§impl Display for ActuatorName
impl Display for ActuatorName
§impl FromStr for ActuatorName
impl FromStr for ActuatorName
§impl Hash for ActuatorName
impl Hash for ActuatorName
§impl Ord for ActuatorName
impl Ord for ActuatorName
§impl PartialEq for ActuatorName
impl PartialEq for ActuatorName
§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