pub struct DependencyUsage { /* private fields */ }Implementations§
Source§impl DependencyUsage
impl DependencyUsage
pub fn is_value_used(&self, mangled: &MangledName) -> bool
pub fn is_member_used(&self, mangled: &MangledName) -> bool
pub fn is_type_used(&self, mangled: &MangledName) -> bool
pub fn is_shape_used(&self, shape: &Shape) -> bool
pub fn uses_bigint(&self) -> bool
pub fn is_host_value_used(&self, module: &str, name: &str) -> bool
pub fn dependency_values<'a>( &self, dependencies: &'a [&'a PackageDeclaration], ) -> Vec<DependencyValue<'a>>
pub fn dependency_types<'a>( &self, dependencies: &'a [&'a PackageDeclaration], ) -> Vec<DependencyType<'a>>
pub fn dependency_shapes<'a>( &self, dependencies: &'a [&'a PackageDeclaration], ) -> Vec<&'a Shape>
pub fn is_type_fully_used(&self, ty: &TypeSymbol) -> bool
pub fn is_type_reachable(&self, ty: &TypeSymbol) -> bool
Sourcepub fn is_type_reachable_by_name(&self, mangled: &MangledName) -> bool
pub fn is_type_reachable_by_name(&self, mangled: &MangledName) -> bool
Reachability by mangled name alone — a class used only through its
statics (Calc.add(…), never constructed) lands in member_types, and
still needs its WasmGC types reconstructed on the consumer side.
pub fn is_interface_member_used(&self, ty: &TypeSymbol, member: &str) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DependencyUsage
impl RefUnwindSafe for DependencyUsage
impl Send for DependencyUsage
impl Sync for DependencyUsage
impl Unpin for DependencyUsage
impl UnsafeUnpin for DependencyUsage
impl UnwindSafe for DependencyUsage
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