pub struct Awk { /* private fields */ }Expand description
High-level wrapper for compiling and running an AWK script.
This type parses the script once and can be run with different input.
§Example
use rawk_core::awk::Awk;
let awk = Awk::new("{ print }");
let output = awk.run(vec!["hello world".into()]);
assert_eq!(output, vec!["hello world".to_string()]);Implementations§
Auto Trait Implementations§
impl Freeze for Awk
impl RefUnwindSafe for Awk
impl Send for Awk
impl Sync for Awk
impl Unpin for Awk
impl UnwindSafe for Awk
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