MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / uses_two_names

Method uses_two_names

crates/wit-bindgen/src/rust.rs:367–377  ·  view source on GitHub ↗
(&self, info: &TypeInfo)

Source from the content-addressed store, hash-verified

365 }
366
367 fn uses_two_names(&self, info: &TypeInfo) -> bool {
368 info.has_list
369 && info.borrowed
370 && info.owned
371 && matches!(
372 self.ownership(),
373 Ownership::Borrowing {
374 duplicate_if_necessary: true
375 }
376 )
377 }
378
379 fn lifetime_for(&self, info: &TypeInfo, mode: TypeMode) -> Option<&'static str> {
380 if matches!(self.ownership(), Ownership::Owning) {

Callers 4

modes_ofMethod · 0.80
param_nameMethod · 0.80
result_nameMethod · 0.80
lifetime_forMethod · 0.80

Implementers 1

lib.rscrates/wit-bindgen/src/lib.rs

Calls

no outgoing calls

Tested by

no test coverage detected