pub struct ReferenceSet { /* private fields */ }Expand description
Every external reference of a plugin set with the places it is used, plus what collection already set aside as not checked.
Implementations§
Source§impl ReferenceSet
impl ReferenceSet
pub fn new() -> Self
pub fn add(&mut self, reference: Reference, site: ReferenceSite)
pub fn count(&mut self, reason: NotChecked, n: usize)
pub fn add_unchecked(&mut self, site: UncheckedSite)
pub fn set_host_includes( &mut self, file: PluginFile, headers: BTreeSet<HeaderRef>, )
pub fn set_exports(&mut self, module: ModuleName, exports: BTreeSet<FunArity>)
pub fn mark_unresolved_include(&mut self, file: PluginFile)
pub fn external(&self) -> &BTreeMap<Reference, BTreeSet<ReferenceSite>>
pub fn not_checked(&self) -> &BTreeMap<NotChecked, usize>
pub fn unchecked(&self) -> &BTreeSet<UncheckedSite>
Sourcepub fn host_includes(&self, file: &PluginFile) -> Option<&BTreeSet<HeaderRef>>
pub fn host_includes(&self, file: &PluginFile) -> Option<&BTreeSet<HeaderRef>>
The host headers a file includes, directly or through the plugin set’s own headers.
pub fn exports_of(&self, module: &ModuleName) -> Option<&BTreeSet<FunArity>>
pub fn has_unresolved_include(&self, file: &PluginFile) -> bool
Trait Implementations§
Source§impl Clone for ReferenceSet
impl Clone for ReferenceSet
Source§impl Debug for ReferenceSet
impl Debug for ReferenceSet
Auto Trait Implementations§
impl Forget for ReferenceSet
impl Freeze for ReferenceSet
impl Move for ReferenceSet
impl RefUnwindSafe for ReferenceSet
impl Send for ReferenceSet
impl Sync for ReferenceSet
impl Unpin for ReferenceSet
impl UnsafeUnpin for ReferenceSet
impl UnwindSafe for ReferenceSet
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