Struct ra_ap_ide::SourceRootId
[−]pub struct SourceRootId(pub u32);
Expand description
Files are grouped into source roots. A source root is a directory on the file systems which is watched for changes. Typically it corresponds to a Rust crate. Source roots might be nested: in this case, a file belongs to the nearest enclosing source root. Paths to files are always relative to a source root, and the analyzer does not know the root path of the source root at all. So, a file from one source root can’t refer to a file in another source root by path.
Tuple Fields
0: u32
Trait Implementations
impl Clone for SourceRootId
impl Clone for SourceRootId
pub fn clone(&self) -> SourceRootId
pub fn clone(&self) -> SourceRootId
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for SourceRootId
impl Debug for SourceRootId
impl Hash for SourceRootId
impl Hash for SourceRootId
impl Ord for SourceRootId
impl Ord for SourceRootId
pub fn cmp(&self, other: &SourceRootId) -> Ordering
pub fn cmp(&self, other: &SourceRootId) -> Ordering
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
impl PartialEq<SourceRootId> for SourceRootId
impl PartialEq<SourceRootId> for SourceRootId
pub fn eq(&self, other: &SourceRootId) -> bool
pub fn eq(&self, other: &SourceRootId) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &SourceRootId) -> bool
pub fn ne(&self, other: &SourceRootId) -> bool
This method tests for !=
.
impl PartialOrd<SourceRootId> for SourceRootId
impl PartialOrd<SourceRootId> for SourceRootId
pub fn partial_cmp(&self, other: &SourceRootId) -> Option<Ordering>
pub fn partial_cmp(&self, other: &SourceRootId) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
impl Copy for SourceRootId
impl Eq for SourceRootId
impl StructuralEq for SourceRootId
impl StructuralPartialEq for SourceRootId
Auto Trait Implementations
impl RefUnwindSafe for SourceRootId
impl Send for SourceRootId
impl Sync for SourceRootId
impl Unpin for SourceRootId
impl UnwindSafe for SourceRootId
Blanket Implementations
Mutably borrows from an owned value. Read more
fn cast<U>(self, interner: <U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: <U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
Cast a value to type U
using CastTo
.
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more