Searched refs:as_str_with_max_len (Results 1 – 3 of 3) sorted by relevance
/external/crosvm/kernel_cmdline/src/ |
D | kernel_cmdline.rs | 112 pub fn as_str_with_max_len(&self, max_len: usize) -> Result<&str> { in as_str_with_max_len() method 205 assert_eq!(cl.as_str_with_max_len(2), Err(Error::TooLarge(3, 2))); in as_str_too_large() 206 assert_eq!(cl.as_str_with_max_len(3), Ok("a=b")); in as_str_too_large() 212 assert_eq!(cl.as_str_with_max_len(8), Err(Error::TooLarge(9, 8))); in as_str_too_large() 213 assert_eq!(cl.as_str_with_max_len(9), Ok("ab=ba c=d")); in as_str_too_large() 219 assert_eq!(cl.as_str_with_max_len(8), Err(Error::TooLarge(9, 8))); in as_str_too_large() 220 assert_eq!(cl.as_str_with_max_len(9), Ok("ab=ba 123")); in as_str_too_large()
|
/external/crosvm/riscv64/src/ |
D | lib.rs | 425 .as_str_with_max_len(RISCV64_CMDLINE_MAX_SIZE - 1) in build_vm()
|
/external/crosvm/aarch64/src/ |
D | lib.rs | 973 .as_str_with_max_len(AARCH64_CMDLINE_MAX_SIZE - 1) in build_vm()
|