[][src]Trait fastobo::share::Redeem

pub trait Redeem<'a> where
    Self: 'a, 
{ type Owned: 'a;
#[must_use = "cloning is often expensive and is not expected to have side effects"]
fn redeem(&'a self) -> Self::Owned; }

A trait for taking ownership over viewed data with possibly expensives costs.

Associated Types

type Owned: 'a

Loading content...

Required methods

#[must_use = "cloning is often expensive and is not expected to have side effects"]
fn redeem(&'a self) -> Self::Owned

Loading content...

Implementations on Foreign Types

impl<'a, T> Redeem<'a> for &'a T where
    T: Clone
[src]

type Owned = T

impl<'a> Redeem<'a> for &'a str[src]

type Owned = String

impl<'a, T> Redeem<'a> for &'a [T] where
    T: 'a + Clone
[src]

type Owned = Vec<T>

Loading content...

Implementors

impl<'a> Redeem<'a> for &'a QuotedStr[src]

impl<'a> Redeem<'a> for &'a UnprefixedId[src]

impl<'a> Redeem<'a> for &'a UnquotedStr[src]

impl<'a> Redeem<'a> for Id<'a>[src]

type Owned = Ident

impl<'a> Redeem<'a> for PropVal<'a>[src]

impl<'a> Redeem<'a> for ClassId<'a>[src]

type Owned = ClassIdent

impl<'a> Redeem<'a> for IdLocal<'a>[src]

type Owned = IdentLocal

impl<'a> Redeem<'a> for IdPrefix<'a>[src]

impl<'a> Redeem<'a> for InstanceId<'a>[src]

impl<'a> Redeem<'a> for NamespaceId<'a>[src]

impl<'a> Redeem<'a> for PrefixedId<'a>[src]

impl<'a> Redeem<'a> for RelationId<'a>[src]

impl<'a> Redeem<'a> for SubsetId<'a>[src]

impl<'a> Redeem<'a> for SynonymTypeId<'a>[src]

impl<'a, B> Redeem<'a> for Cow<'a, B> where
    B: Redeem<'a>,
    <B as Redeem<'a>>::Owned: Clone
[src]

type Owned = <B as Redeem<'a>>::Owned

Loading content...