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

Method from

cranelift/entity/src/packed_option.rs:101–107  ·  view source on GitHub ↗

Convert `t` into a packed `Some(x)`.

(t: T)

Source from the content-addressed store, hash-verified

99impl<T: ReservedValue> From<T> for PackedOption<T> {
100 /// Convert `t` into a packed `Some(x)`.
101 fn from(t: T) -> Self {
102 debug_assert!(
103 !t.is_reserved_value(),
104 "Can't make a PackedOption from the reserved value."
105 );
106 Self(t)
107 }
108}
109
110impl<T: ReservedValue> From<Option<T>> for PackedOption<T> {

Callers

nothing calls this directly

Calls 1

expandMethod · 0.45

Tested by

no test coverage detected