pub struct PoseName(/* private fields */);Expand description
A non-empty pose name.
Implementations§
Source§impl PoseName
impl PoseName
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, PoseTextError>
pub fn new(value: impl AsRef<str>) -> Result<Self, PoseTextError>
Creates a pose name from non-empty text.
§Errors
Returns PoseTextError::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 Ord for PoseName
impl Ord for PoseName
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 PartialOrd for PoseName
impl PartialOrd for PoseName
impl Eq for PoseName
impl StructuralPartialEq for PoseName
Auto Trait Implementations§
impl Freeze for PoseName
impl RefUnwindSafe for PoseName
impl Send for PoseName
impl Sync for PoseName
impl Unpin for PoseName
impl UnsafeUnpin for PoseName
impl UnwindSafe for PoseName
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