pub struct QuotedNest;Trait Implementations§
Source§impl BashCodec for QuotedNest
impl BashCodec for QuotedNest
Source§fn emit(&self, val: &BashVal) -> Vec<String>
fn emit(&self, val: &BashVal) -> Vec<String>
The value’s own depth decides the encoding, so there is nothing to
disagree with and nothing to fail.
Source§fn parse(
&self,
words: &[String],
schema: &Schema,
) -> Result<BashVal, ParseError>
fn parse( &self, words: &[String], schema: &Schema, ) -> Result<BashVal, ParseError>
A
Schema says how many layers of quoting to peel, which the text
alone does not.Source§fn emit_literal(&self, val: &BashVal) -> String
fn emit_literal(&self, val: &BashVal) -> String
A complete bash array literal:
(w1 w2 …), each scalar single-quoted.fn parse_literal( &self, input: &str, schema: &Schema, ) -> Result<BashVal, ParseError>
Source§fn rows(&self, input: &str) -> Result<Vec<Vec<String>>, ParseError>
fn rows(&self, input: &str) -> Result<Vec<Vec<String>>, ParseError>
A two-dimensional literal as its rows:
("'a' 'b'" "'c'") →
[["a", "b"], ["c"]]. One dimension needs no codec — see
parse_array.Auto Trait Implementations§
impl Freeze for QuotedNest
impl RefUnwindSafe for QuotedNest
impl Send for QuotedNest
impl Sync for QuotedNest
impl Unpin for QuotedNest
impl UnsafeUnpin for QuotedNest
impl UnwindSafe for QuotedNest
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