pub enum SourceRoot {
Src,
Tests,
}Expand description
One of a package’s two source roots, as
Source roots fixes them: src/
is what the package ships, tests/ is compiled when this package’s own tests are
run. Neither is configurable and there is no third.
Every SourceFile carries the one it was walked from, because the two roots share
one set of module names: src/Model.zel and tests/Model.zel are both Model, and
a diagnostic about that has to say which file it means.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for SourceRoot
impl Clone for SourceRoot
Source§fn clone(&self) -> SourceRoot
fn clone(&self) -> SourceRoot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SourceRoot
Source§impl Debug for SourceRoot
impl Debug for SourceRoot
Source§impl Display for SourceRoot
impl Display for SourceRoot
impl Eq for SourceRoot
Source§impl Hash for SourceRoot
impl Hash for SourceRoot
Source§impl PartialEq for SourceRoot
impl PartialEq for SourceRoot
impl StructuralPartialEq for SourceRoot
Auto Trait Implementations§
impl Freeze for SourceRoot
impl RefUnwindSafe for SourceRoot
impl Send for SourceRoot
impl Sync for SourceRoot
impl Unpin for SourceRoot
impl UnsafeUnpin for SourceRoot
impl UnwindSafe for SourceRoot
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more