[][src]Struct ra_ap_base_db::CrateName

pub struct CrateName(_);

Implementations

impl CrateName[src]

pub fn new(name: &str) -> Result<CrateName, &str>[src]

Creates a crate name, checking for dashes in the string provided. Dashes are not allowed in the crate names, hence the input string is returned as Err for those cases.

pub fn normalize_dashes(name: &str) -> CrateName[src]

Creates a crate name, unconditionally replacing the dashes with underscores.

Trait Implementations

impl Clone for CrateName[src]

impl Debug for CrateName[src]

impl Deref for CrateName[src]

type Target = str

The resulting type after dereferencing.

impl Display for CrateName[src]

impl Eq for CrateName[src]

impl From<CrateName> for CrateDisplayName[src]

impl Hash for CrateName[src]

impl PartialEq<CrateName> for CrateName[src]

impl StructuralEq for CrateName[src]

impl StructuralPartialEq for CrateName[src]

Auto Trait Implementations

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, U> Into<U> for T where
    U: From<T>, 
[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<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.