pub struct NumLogs<const L: usize> { /* private fields */ }Expand description
Struct to hold a fixed number of log entries 保存固定数量日志条目的结构体
Implementations§
Source§impl<const L: usize> NumLogs<L>
impl<const L: usize> NumLogs<L>
pub fn get_title(&self) -> &'static str
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn clear(&mut self)
Sourcepub fn add(&mut self, n: impl IntoNumLog) -> &mut Self
pub fn add(&mut self, n: impl IntoNumLog) -> &mut Self
Add a log entry 添加一个日志条目
Sourcepub fn push(&mut self, s: (&'static str, String)) -> &mut Self
pub fn push(&mut self, s: (&'static str, String)) -> &mut Self
Push a key-value pair log entry 推送一个键值对日志条目
pub fn push_arr(&mut self, arr: Vec<(&'static str, String)>) -> &mut Self
pub fn add2(&mut self, n: impl IntoNumLog, n2: impl IntoNumLog) -> &mut Self
pub fn add_whitespace(&mut self) -> &mut Self
pub fn add_k(&mut self) -> &mut Self
pub fn add_arr<const ARR_LEN: usize, T: IntoNumLog>( &mut self, s_arr: [T; ARR_LEN], ) -> &mut Self
pub fn add_vec<T: IntoNumLog>(&mut self, s_arr: Vec<T>) -> &mut Self
pub fn append<const LEN: usize>(&mut self, vals: NumLogs<LEN>) -> &mut Self
Trait Implementations§
impl<const L: usize> Copy for NumLogs<L>
Auto Trait Implementations§
impl<const L: usize> Freeze for NumLogs<L>
impl<const L: usize> RefUnwindSafe for NumLogs<L>
impl<const L: usize> Send for NumLogs<L>
impl<const L: usize> Sync for NumLogs<L>
impl<const L: usize> Unpin for NumLogs<L>
impl<const L: usize> UnwindSafe for NumLogs<L>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)