MCPcopy Create free account
hub / github.com/hashintel/hash / from

Function from

libs/@local/hashql/diagnostics/src/encoding.rs:47–55  ·  view source on GitHub ↗
(value: Style)

Source from the content-addressed store, hash-verified

45 }
46
47 const impl From<Style> for StyleProxy {
48 fn from(value: Style) -> Self {
49 Self {
50 effects: value.get_effects(),
51 foreground: const_from(value.get_fg_color()),
52 background: const_from(value.get_bg_color()),
53 underline: const_from(value.get_underline_color()),
54 }
55 }
56 }
57
58 const impl From<StyleProxy> for Style {

Callers 15

insert_frontMethod · 0.70
pushMethod · 0.70
popMethod · 0.70
deserializeMethod · 0.70
string_into_boxed_strFunction · 0.50
newMethod · 0.50
prefill_environmentFunction · 0.50
render_headerFunction · 0.50
render_runningFunction · 0.50
render_stats_phaseFunction · 0.50

Calls 1

const_fromFunction · 0.85

Tested by 15

string_into_boxed_strFunction · 0.40
int_dedupFunction · 0.40
snapshot_settingsFunction · 0.40
serialize_boolean_trueFunction · 0.40
serialize_boolean_falseFunction · 0.40
serialize_integerFunction · 0.40
serialize_numberFunction · 0.40
serialize_stringFunction · 0.40