Struct tcgeneric::id::Id [−][src]
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]
fn extend<T: IntoIterator<Item = PathSegment>>(&mut self, iter: T)
[src]
pub fn extend_one(&mut self, item: A)
[src]
pub fn extend_reserve(&mut self, additional: usize)
[src]
impl From<Id> for TCPathBuf
[src]
fn from(segment: PathSegment) -> 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]
fn from_iter<T: IntoIterator<Item = PathSegment>>(iter: T) -> Self
[src]
impl FromStr for Id
[src]
type Err = TCError
The associated error which can be returned from parsing.
fn from_str(id: &str) -> TCResult<Id>
[src]
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
fn from_stream<'life0, 'async_trait, D: Decoder>(
_context: (),
d: &'life0 mut D
) -> Pin<Box<dyn Future<Output = Result<Self, D::Error>> + Send + 'async_trait>> where
D: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
_context: (),
d: &'life0 mut D
) -> Pin<Box<dyn Future<Output = Result<Self, D::Error>> + Send + 'async_trait>> where
D: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
impl Hash for Id
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'en> IntoStream<'en> for Id
[src]
impl Ord for Id
[src]
fn cmp(&self, other: &Id) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<'a> PartialEq<&'a str> for Id
[src]
fn eq(&self, other: &&'a str) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[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]
fn partial_cmp(&self, other: &Id) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for Id
[src]
impl StructuralPartialEq for Id
[src]
impl<'en> ToStream<'en> for Id
[src]
impl TryCastFrom<String> for Id
[src]
fn can_cast_from(id: &String) -> bool
[src]
fn opt_cast_from(id: String) -> Option<Id>
[src]
pub fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
[src]
OnErr: FnOnce(&T) -> Err,
impl TryCastFrom<TCPathBuf> for Id
[src]
fn can_cast_from(path: &TCPathBuf) -> bool
[src]
fn opt_cast_from(path: TCPathBuf) -> Option<Id>
[src]
pub fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
[src]
OnErr: FnOnce(&T) -> Err,
Auto Trait Implementations
impl RefUnwindSafe for Id
[src]
impl Send for Id
[src]
impl Sync for Id
[src]
impl Unpin for Id
[src]
impl UnwindSafe for Id
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<F, T> CastFrom<F> for T where
T: From<F>,
[src]
T: From<F>,
impl<T, F> CastInto<F> for T where
F: CastFrom<T>,
[src]
F: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<F> Match for F
[src]
pub fn matches<T>(&self) -> bool where
T: TryCastFrom<Self>,
[src]
T: TryCastFrom<Self>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<F, T> TryCastFrom<F> for T where
T: CastFrom<F>,
[src]
T: CastFrom<F>,
pub fn can_cast_from(&F) -> bool
[src]
pub fn opt_cast_from(f: F) -> Option<T>
[src]
pub fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
[src]
OnErr: FnOnce(&T) -> Err,
impl<F, T> TryCastInto<T> for F where
T: TryCastFrom<F>,
[src]
T: TryCastFrom<F>,
pub fn can_cast_into(&self) -> bool
[src]
pub fn opt_cast_into(self) -> Option<T>
[src]
pub fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err> where
OnErr: FnOnce(&Self) -> Err,
[src]
OnErr: FnOnce(&Self) -> Err,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,