Trait string_reader::StringRead
source · pub trait StringRead: StrRead {
// Required methods
fn pop_string(&mut self) -> Option<String>;
fn peek_mut_string(&mut self) -> Option<&mut String>;
// Provided method
fn map_string(&mut self, f: impl FnMut(&mut String)) { ... }
}Expand description
Represent anything that pops out String.
Required Methods§
sourcefn pop_string(&mut self) -> Option<String>
fn pop_string(&mut self) -> Option<String>
Remove the next String and return it.
sourcefn peek_mut_string(&mut self) -> Option<&mut String>
fn peek_mut_string(&mut self) -> Option<&mut String>
Get a mutable reference to the next String.
Provided Methods§
sourcefn map_string(&mut self, f: impl FnMut(&mut String))
fn map_string(&mut self, f: impl FnMut(&mut String))
Change the next String that will be poped.
Object Safety§
This trait is not object safe.