MCPcopy Create free account
hub / github.com/AccessKit/accesskit / toolkit_description

Function toolkit_description

platforms/windows/src/util.rs:341–351  ·  view source on GitHub ↗
(state: &TreeState)

Source from the content-addressed store, hash-verified

339}
340
341pub(crate) fn toolkit_description(state: &TreeState) -> Option<WideString> {
342 state.toolkit_name().map(|name| {
343 let mut result = WideString::default();
344 result.write_str(name).unwrap();
345 if let Some(version) = state.toolkit_version() {
346 result.write_char(' ').unwrap();
347 result.write_str(version).unwrap();
348 }
349 result
350 })
351}
352
353pub(crate) fn upgrade<T>(weak: &Weak<T>) -> Result<Arc<T>> {
354 match weak.upgrade() {

Callers 1

GetPropertyValueMethod · 0.85

Calls 5

mapMethod · 0.80
toolkit_nameMethod · 0.45
write_strMethod · 0.45
toolkit_versionMethod · 0.45
write_charMethod · 0.45

Tested by

no test coverage detected