pub struct CounterCommand<'a> {
pub counters: &'a mut Counters,
pub json_tree: String,
}
Fields§
§counters: &'a mut Counters
§json_tree: String
Implementations§
Source§impl<'a> CounterCommand<'a>
impl<'a> CounterCommand<'a>
pub fn new(counters: &'a mut Counters, json_tree: &'a str) -> Self
pub fn has_counter_syntax(text: &str) -> bool
pub fn has_handle_insert_syntax(text: &str) -> bool
pub fn run(&mut self, json: &mut DataCell) -> String
pub fn replace_counters( &mut self, cell: &mut DataCell, handle_insert_command: bool, ) -> String
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CounterCommand<'a>
impl<'a> RefUnwindSafe for CounterCommand<'a>
impl<'a> Send for CounterCommand<'a>
impl<'a> Sync for CounterCommand<'a>
impl<'a> Unpin for CounterCommand<'a>
impl<'a> !UnwindSafe for CounterCommand<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more