Struct tcgeneric::id::Id[][src]

pub struct Id { /* fields omitted */ }

A generic Id

Id is widely used within the Tinychain host software to identify individual variables within a transaction context as well as files and directories.

An Id must be valid UTF8 and must not contain whitespace or any control character sequence like {/, .., ~, $, \, ^, &, |, =, {, }, <, >, ', ", ?, :, @, #}.

Implementations

impl Id[src]

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

Borrows the String underlying this Id.

pub fn starts_with(&self, prefix: &str) -> bool[src]

Return true if this Id begins with the specified string.

Trait Implementations

impl Clone for Id[src]

impl Debug for Id[src]

impl Display for Id[src]

impl Eq for Id[src]

impl Extend<Id> for TCPathBuf[src]

impl From<Id> for TCPathBuf[src]

impl From<Label> for Id[src]

impl From<Uuid> for Id[src]

impl From<u64> for Id[src]

impl From<usize> for Id[src]

impl FromIterator<Id> for TCPathBuf[src]

impl FromStr for Id[src]

type Err = TCError

The associated error which can be returned from parsing.

impl FromStream for Id[src]

type Context = ()

The decoding context of this type, useful in situations where the stream to be decoded may be too large to hold in main memory. Read more

impl Hash for Id[src]

impl<'en> IntoStream<'en> for Id[src]

impl Ord for Id[src]

impl<'a> PartialEq<&'a str> for Id[src]

impl PartialEq<Id> for Id[src]

impl PartialEq<Label> for Id[src]

impl PartialEq<str> for Id[src]

impl PartialOrd<Id> for Id[src]

impl StructuralEq for Id[src]

impl StructuralPartialEq for Id[src]

impl<'en> ToStream<'en> for Id[src]

impl TryCastFrom<String> for Id[src]

impl TryCastFrom<TCPathBuf> for Id[src]

Auto Trait Implementations

impl RefUnwindSafe for Id

impl Send for Id

impl Sync for Id

impl Unpin for Id

impl UnwindSafe for Id

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<F, T> CastFrom<F> for T where
    T: From<F>, 
[src]

impl<T, F> CastInto<F> for T where
    F: CastFrom<T>, 
[src]

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

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

impl<F> Match for F[src]

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<F, T> TryCastFrom<F> for T where
    T: CastFrom<F>, 
[src]

impl<F, T> TryCastInto<T> for F where
    T: TryCastFrom<F>, 
[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.