fn quote_inner<Spec: GeneralQSSpec>(
    input: &str,
    out: &mut String,
) -> Result<(), CoreError>
{
    use self::QuotingClass::*;
    for ch in input.chars() {
        match Spec::Quoting::classify_for_quoting(PartialCodePoint::from_code_point(ch as u32)) {
            QText => out.push(ch),
            NeedsQuoting => { out.push('\\'); out.push(ch); }
            Invalid => return Err(CoreError::InvalidChar)
        }
    }
    Ok(())
}
/// quotes a input writing it into the output buffer, does not add surrounding '"'
///
/// if ascii_only is true and non ascii chars a found an error is returned.
///
/// If no error is returned a boolean indicating if the whole input was ascii is
/// returned.
quotes a input writing it into the output buffer, does not add surrounding '"'
if ascii_only is true and non ascii chars a found an error is returned.

If no error is returned a boolean indicating if the whole input was ascii is
returned.
quotes a input writing it into the output buffer does not add surrounding ' " ' if ascii_only is true and non ascii chars a found an error is returned . If no error is returned a boolean indicating if the whole input was ascii is returned .
fn quote_inner<Spec: GeneralQSSpec>(
    input: &str,
    out: &mut String,
) -> Result<(), CoreError>
{
    use self::QuotingClass::*;
    for ch in input.chars() {
        match Spec::Quoting::classify_for_quoting(PartialCodePoint::from_code_point(ch as u32)) {
            QText => out.push(ch),
            NeedsQuoting => { out.push('\\'); out.push(ch); }
            Invalid => return Err(CoreError::InvalidChar)
        }
    }
    Ok(())
}
fn quote_inner < Spec : GeneralQSSpec > ( input : & str , out : & mut String , ) -> Result < ( ) , CoreError > { use self :: QuotingClass :: * ; for ch in input . chars ( ) { match Spec :: Quoting :: classify_for_quoting ( PartialCodePoint :: from_code_point ( ch as u32 ) ) { QText => out . push ( ch ) , NeedsQuoting => { out . push ( '\\' ) ; out . push ( ch ) ; } Invalid => return Err ( CoreError :: InvalidChar ) } } Ok ( ( ) ) }
quotes a input writing it into the output buffer, does not add surrounding '"'
if ascii_only is true and non ascii chars a found an error is returned.
quotes a input writing it into the output buffer does not add surrounding ' " ' if ascii_only is true and non ascii chars a found an error is returned .
input
&str
out
&mut String
input
&str
out
&mut String