Struct ra_ap_base_db::CrateName [−][src]
pub struct CrateName(_);
Implementations
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.
Creates a crate name, unconditionally replacing the dashes with underscores.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for CrateName
impl UnwindSafe for CrateName
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.