pub struct TagName(/* private fields */);Expand description
A validated OCI tag.
Implementations§
Source§impl OciTag
impl OciTag
Sourcepub fn is_version_like(&self) -> bool
pub fn is_version_like(&self) -> bool
Returns true when the tag looks like a simple semantic version.
Sourcepub fn is_architecture_like(&self) -> bool
pub fn is_architecture_like(&self) -> bool
Returns true when the tag contains a common architecture label.
Trait Implementations§
Source§impl Ord for OciTag
impl Ord for OciTag
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 PartialOrd for OciTag
impl PartialOrd for OciTag
impl Eq for OciTag
impl StructuralPartialEq for OciTag
Auto Trait Implementations§
impl Freeze for OciTag
impl RefUnwindSafe for OciTag
impl Send for OciTag
impl Sync for OciTag
impl Unpin for OciTag
impl UnsafeUnpin for OciTag
impl UnwindSafe for OciTag
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