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