pub struct SourceReferences {
pub paths: BTreeSet<String>,
pub conservative: bool,
}Expand description
Paths one file’s executable expressions mention, and how much the scan could actually see. 一个文件的可执行表达式提到的路径,以及这次扫描实际能看到多少。
A caller that prunes faces from this list must respect conservative: the
scan is lexical, so anything it cannot follow has to widen the result instead
of silently shrinking it.
依据这份清单裁剪注册面的调用方必须尊重 conservative:扫描是词法层面的,凡它跟不下去
的东西都必须让结果变宽,而不是悄悄变窄。
Fields§
§paths: BTreeSet<String>Every path reached through an expression, with imports excluded. 经表达式触达的每个路径,不含导入。
conservative: boolSet when the scan met something it cannot follow (macro expansion, a trait
object, include!), so the caller must not prune on this list alone.
扫描遇到跟不下去的东西(宏展开、trait object、include!)时置位,调用方不得仅凭
这份清单裁剪。
Trait Implementations§
Source§impl Clone for SourceReferences
impl Clone for SourceReferences
Source§fn clone(&self) -> SourceReferences
fn clone(&self) -> SourceReferences
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 moreSource§impl Debug for SourceReferences
impl Debug for SourceReferences
Source§impl Default for SourceReferences
impl Default for SourceReferences
Source§fn default() -> SourceReferences
fn default() -> SourceReferences
Returns the “default value” for a type. Read more
impl Eq for SourceReferences
Source§impl PartialEq for SourceReferences
impl PartialEq for SourceReferences
impl StructuralPartialEq for SourceReferences
Auto Trait Implementations§
impl Freeze for SourceReferences
impl RefUnwindSafe for SourceReferences
impl Send for SourceReferences
impl Sync for SourceReferences
impl Unpin for SourceReferences
impl UnsafeUnpin for SourceReferences
impl UnwindSafe for SourceReferences
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