Method lrs::string::NoNullStr::set

Sets a byte in the slice to a value.

Syntax

impl NoNullStr {
    fn set(&mut self, idx: usize, val: u8) -> ()
}

Arguments

NameDescription
idx

The index of the byte to be set.

val

The value of the byte.

Remarks

If val == 0, the process is aborted.