pub struct LocalUsageAnalysis { /* private fields */ }Expand description
本体走査の結果 (名前 → NameUsage)
Implementations§
Source§impl LocalUsageAnalysis
impl LocalUsageAnalysis
Sourcepub fn needs_mut(&self, name: InternedStr) -> bool
pub fn needs_mut(&self, name: InternedStr) -> bool
mut 宣言が必要か
Sourcepub fn is_unused(&self, name: InternedStr) -> bool
pub fn is_unused(&self, name: InternedStr) -> bool
追跡対象でありかつ一度も参照されていないか (→ _ prefix)
Sourcepub fn needs_zeroed_init(&self, name: InternedStr) -> bool
pub fn needs_zeroed_init(&self, name: InternedStr) -> bool
未初期化宣言に zeroed 初期化が必要か (代入前 AddrOf があったか)
Sourcepub fn mut_names(&self) -> HashSet<InternedStr>
pub fn mut_names(&self) -> HashSet<InternedStr>
needs_mut な名前の集合 (旧 collect_mut_params の戻り値互換)
Trait Implementations§
Source§impl Clone for LocalUsageAnalysis
impl Clone for LocalUsageAnalysis
Source§fn clone(&self) -> LocalUsageAnalysis
fn clone(&self) -> LocalUsageAnalysis
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 LocalUsageAnalysis
impl Debug for LocalUsageAnalysis
Source§impl Default for LocalUsageAnalysis
impl Default for LocalUsageAnalysis
Source§fn default() -> LocalUsageAnalysis
fn default() -> LocalUsageAnalysis
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LocalUsageAnalysis
impl RefUnwindSafe for LocalUsageAnalysis
impl Send for LocalUsageAnalysis
impl Sync for LocalUsageAnalysis
impl Unpin for LocalUsageAnalysis
impl UnsafeUnpin for LocalUsageAnalysis
impl UnwindSafe for LocalUsageAnalysis
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