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<Pose3Label, PoseTextError>
pub fn new(value: impl AsRef<str>) -> Result<Pose3Label, 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 · 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§type Err = PoseTextError
type Err = PoseTextError
The associated error which can be returned from parsing.
Source§fn from_str(value: &str) -> Result<Pose3Label, <Pose3Label as FromStr>::Err>
fn from_str(value: &str) -> Result<Pose3Label, <Pose3Label as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§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 · 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§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