[][src]Struct bandsocks::Tag

pub struct Tag { /* fields omitted */ }

A tag identifying a specific image version by name

Tags are up to 128 characters long, including alphanumeric characters and underscores appearing anywhere in the string, and dots or dashes appearing anywhere except the beginning.

Implementations

impl Tag[src]

pub fn as_str(&self) -> &str[src]

Returns a reference to the existing string representation of a Tag

Tags are up to 128 characters long, including alphanumeric characters and underscores appearing anywhere in the string, and dots or dashes appearing anywhere except the beginning.

pub fn parse(s: &str) -> Result<Self, ImageError>[src]

Parse a str as a Tag

pub fn latest() -> Self[src]

Returns the special tag latest

pub fn is_latest(&self) -> bool[src]

Is this the special tag latest?

Trait Implementations

impl Clone for Tag[src]

impl Debug for Tag[src]

impl Display for Tag[src]

impl Eq for Tag[src]

impl FromStr for Tag[src]

type Err = ImageError

The associated error which can be returned from parsing.

impl Hash for Tag[src]

impl Ord for Tag[src]

impl PartialEq<Tag> for Tag[src]

impl PartialOrd<Tag> for Tag[src]

Auto Trait Implementations

impl RefUnwindSafe for Tag

impl Send for Tag

impl Sync for Tag

impl Unpin for Tag

impl UnwindSafe for Tag

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,