[−][src]Struct ra_ap_base_db::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]
impl Display for CrateName
[src]
impl Eq for CrateName
[src]
impl From<CrateName> for CrateDisplayName
[src]
fn from(crate_name: CrateName) -> CrateDisplayName
[src]
impl Hash for CrateName
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<CrateName> for CrateName
[src]
impl StructuralEq for CrateName
[src]
impl StructuralPartialEq for CrateName
[src]
Auto Trait Implementations
impl RefUnwindSafe for CrateName
impl Send for CrateName
impl Sync for CrateName
impl Unpin for CrateName
impl UnwindSafe for CrateName
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<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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<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>,