fn initial_cmd_line_len<I>(cmd: &OsStr, args: I) -> usize
where
    I: IntoIterator,
    I::Item: AsRef<OsStr>,
{
    args.into_iter()
        .fold(cmd.len(), |acc, i| acc + i.as_ref().len() + 1)
}
/// Returns length in bytes of `cmd` and `args`.
///
/// TODO: xargs man page states that zero terminators should be counted.
Returns length in bytes of `cmd` and `args`.
TODO: xargs man page states that zero terminators should be counted.
Returns length in bytes of ` cmd ` and ` args ` . TODO : xargs man page states that zero terminators should be counted .
fn initial_cmd_line_len<I>(cmd: &OsStr, args: I) -> usize
where
    I: IntoIterator,
    I::Item: AsRef<OsStr>,
{
    args.into_iter()
        .fold(cmd.len(), |acc, i| acc + i.as_ref().len() + 1)
}
fn initial_cmd_line_len < I > ( cmd : & OsStr , args : I ) -> usize where I : IntoIterator , I :: Item : AsRef < OsStr > , { args . into_iter ( ) . fold ( cmd . len ( ) , | acc , i | acc + i . as_ref ( ) . len ( ) + 1 ) }
Returns length in bytes of `cmd` and `args`.
Returns length in bytes of ` cmd ` and ` args ` .
cmd
&OsStr
args
I
cmd
&OsStr
args
I