Struct kernel_cmdline::Cmdline
source · pub struct Cmdline {
pub(crate) line: String,
}
Expand description
A builder for a kernel command line string that validates the string as it is built.
Fields§
§line: String
Implementations§
source§impl Cmdline
impl Cmdline
pub(crate) fn push_space_if_needed(&mut self)
sourcepub fn insert<T: AsRef<str>>(&mut self, key: T, val: T) -> Result<()>
pub fn insert<T: AsRef<str>>(&mut self, key: T, val: T) -> Result<()>
Validates and inserts a key value pair into this command line
sourcepub fn insert_str<T: AsRef<str>>(&mut self, slug: T) -> Result<()>
pub fn insert_str<T: AsRef<str>>(&mut self, slug: T) -> Result<()>
Validates and inserts a string to the end of the current command line
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Cmdline
impl Send for Cmdline
impl Sync for Cmdline
impl Unpin for Cmdline
impl UnwindSafe for Cmdline
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