[][src]Struct fastobo::ast::UnprefixedId

#[repr(transparent)]
pub struct UnprefixedId(_);

A borrowed UnprefixedIdentifier.

Methods

impl UnprefixedId[src]

pub fn new(s: &str) -> &Self[src]

Create a new UnprefixedId.

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

Return a reference to the underlying string slice.

Trait Implementations

impl<'a> Share<'a, &'a UnprefixedId> for UnprefixedIdent[src]

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

impl<'a> From<&'a UnprefixedId> for Id<'a>[src]

impl Ord for UnprefixedId[src]

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl AsRef<UnprefixedId> for UnprefixedIdent[src]

impl AsRef<str> for UnprefixedId[src]

impl PartialEq<UnprefixedId> for UnprefixedId[src]

impl PartialOrd<UnprefixedId> for UnprefixedId[src]

impl Eq for UnprefixedId[src]

impl ToOwned for UnprefixedId[src]

type Owned = UnprefixedIdent

The resulting type after obtaining ownership.

fn clone_into(&self, target: &mut Self::Owned)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl Hash for UnprefixedId[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for UnprefixedId[src]

impl Display for UnprefixedId[src]

impl Borrow<UnprefixedId> for UnprefixedIdent[src]

impl OpaqueTypedefUnsized for UnprefixedId[src]

type Inner = str

Inner type.

type Error = Infallible

Validation error type.

Auto Trait Implementations

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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