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