pub struct Crate {
pub name: String,
pub root_path: PathBuf,
}Fields§
§name: String§root_path: PathBufImplementations§
Source§impl Crate
impl Crate
pub fn current_with_name(name: &str) -> Self
pub fn new(name: &str, root_path: PathBuf) -> Self
pub fn ident(&self) -> Ident
pub fn root_path(&self) -> PathBuf
pub fn process( &self, attrs: Vec<Attribute>, context: &Arc<RwLock<GlobalContext>>, ) -> Result<ScopeTreeExportItem, Error>
Trait Implementations§
impl Eq for Crate
impl StructuralPartialEq for Crate
Auto Trait Implementations§
impl Freeze for Crate
impl RefUnwindSafe for Crate
impl Send for Crate
impl Sync for Crate
impl Unpin for Crate
impl UnwindSafe for Crate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.