Lines Matching full:cmdline
59 pub struct Cmdline { struct
64 impl Cmdline { impl
65 /// Constructs an empty Cmdline with the given capacity, which includes the nul terminator.
67 pub fn new(capacity: usize) -> Cmdline { in new() argument
69 Cmdline { in new()
128 /// Returns the cmdline in progress without nul termination
134 impl From<Cmdline> for Vec<u8> {
135 fn from(c: Cmdline) -> Vec<u8> { in from()
148 let mut cl = Cmdline::new(100); in insert_hello_world()
153 let s = CString::new(cl).expect("failed to create CString from Cmdline"); in insert_hello_world()
159 let mut cl = Cmdline::new(100); in insert_multi()
167 let mut cl = Cmdline::new(100); in insert_space()
177 let mut cl = Cmdline::new(100); in insert_equals()
188 let mut cl = Cmdline::new(100); in insert_emoji()
196 let mut cl = Cmdline::new(13); in insert_string()
206 let mut cl = Cmdline::new(4); in insert_too_large()
215 let mut cl = Cmdline::new(10); in insert_too_large()