blob: 3582a6430c51ba50278f51b4ea410c673a9dc926 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/*
* 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 = <Vec<ParamItem> as IntoIterator>::IntoIter;
|