/* * Copyright (c) 2006-2025, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author notes * 2025-10-10 foxglove Parameter module */ use alloc::vec::Vec; use core::iter::IntoIterator; use core::ops::Deref; #[derive(Debug)] pub struct ParamItem(&'static [u8]); impl Deref for ParamItem { type Target = [u8]; fn deref(&self) -> &Self::Target { return self.0; } } impl ParamItem { pub fn new(raw: &'static [u8]) -> Self { ParamItem(raw) } } pub type Param = as IntoIterator>::IntoIter;