pub enum NewError {
NoParent(PathBuf),
Taken(PathBuf),
CrateName(PathBuf),
Reserved(String),
}Expand description
new refuses the directory it was given.
Variants§
NoParent(PathBuf)
The directory that would hold the library is none; new creates
no directory above it.
Taken(PathBuf)
Something is at the path already, other than an empty directory.
CrateName(PathBuf)
The directory’s name is no crate name: ASCII letters, digits, - and
_, starting with a letter.
Reserved(String)
The crate name, as Cargo spells it, is one Rust or Cargo keeps for itself.
Trait Implementations§
impl Eq for NewError
impl StructuralPartialEq for NewError
Auto Trait Implementations§
impl Forget for NewError
impl Freeze for NewError
impl Move for NewError
impl RefUnwindSafe for NewError
impl Send for NewErrorwhere
RawVecInner: Send,
impl Sync for NewErrorwhere
RawVecInner: Sync,
impl Unpin for NewError
impl UnsafeUnpin for NewError
impl UnwindSafe for NewErrorwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more