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