Lines Matching refs:BlockArg
77 args: impl IntoIterator<Item = BlockArg>, in new()
98 pub fn append_argument(&mut self, arg: impl Into<BlockArg>, pool: &mut ValueListPool) { in append_argument() argument
111 ) -> impl ExactSizeIterator<Item = BlockArg> + DoubleEndedIterator<Item = BlockArg> + use<'a> in args()
115 .map(|value| BlockArg::decode_from_value(*value)) in args()
119 pub fn update_args<F: FnMut(BlockArg) -> BlockArg>( in update_args()
125 let new = f(BlockArg::decode_from_value(*raw)); in update_args()
144 T: Into<BlockArg>, in extend() argument
199 pub enum BlockArg { enum
218 impl BlockArg { implementation
224 BlockArg::Value(v) => (0, v.as_bits()), in encode_as_value()
225 BlockArg::TryCallRet(i) => (1, i), in encode_as_value()
226 BlockArg::TryCallExn(i) => (2, i), in encode_as_value()
239 0 => BlockArg::Value(Value::from_bits(payload)), in decode_from_value()
240 1 => BlockArg::TryCallRet(payload), in decode_from_value()
241 2 => BlockArg::TryCallExn(payload), in decode_from_value()
250 BlockArg::Value(v) => Some(v), in as_value()
258 BlockArg::Value(v) => BlockArg::Value(f(v)), in map_value()
264 impl Display for BlockArg { implementation
267 BlockArg::Value(v) => write!(f, "{v}"), in fmt()
268 BlockArg::TryCallRet(i) => write!(f, "ret{i}"), in fmt()
269 BlockArg::TryCallExn(i) => write!(f, "exn{i}"), in fmt()
274 impl From<Value> for BlockArg { implementation
275 fn from(value: Value) -> BlockArg { in from() argument
276 BlockArg::Value(value) in from()