pub struct TinyVersion { /* private fields */ }
Implementations§
Source§impl TinyVersion
impl TinyVersion
Trait Implementations§
Source§impl Clone for TinyVersion
impl Clone for TinyVersion
Source§fn clone(&self) -> TinyVersion
fn clone(&self) -> TinyVersion
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 TinyVersion
impl Debug for TinyVersion
Source§impl Display for TinyVersion
impl Display for TinyVersion
Source§impl FromStr for TinyVersion
impl FromStr for TinyVersion
Source§fn from_str(s: &str) -> Result<Self, Self::Err>
fn from_str(s: &str) -> Result<Self, Self::Err>
Parses a version string in the format “major.minor.patch” or “major.minor.patch-pre_release”.
§Examples
let version: TinyVersion = "1.2.3".parse().unwrap();
assert_eq!(version.to_string(), "1.2.3");
let version: TinyVersion = "1.2.3-beta".parse().unwrap();
assert_eq!(version.to_string(), "1.2.3-beta");
Source§type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
Source§impl PartialEq for TinyVersion
impl PartialEq for TinyVersion
impl Eq for TinyVersion
impl StructuralPartialEq for TinyVersion
Auto Trait Implementations§
impl Freeze for TinyVersion
impl RefUnwindSafe for TinyVersion
impl Send for TinyVersion
impl Sync for TinyVersion
impl Unpin for TinyVersion
impl UnwindSafe for TinyVersion
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